Skip to content

Commit 9b293e9

Browse files
grantbshaffer
authored andcommitted
Delete url-shortener.php (#1646)
1 parent 4bfd3ed commit 9b293e9

File tree

5 files changed

+8
-181
lines changed

5 files changed

+8
-181
lines changed

examples/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@
1111
1212
1. Point your browser to the host and port you specified, i.e `http://localhost:8000`.
1313
14+
## G Suite OAuth Samples
15+
16+
G Suite APIs such as Slides, Sheets, and Drive use 3-legged OAuth authentification.
17+
Samples using OAuth can be found here:
18+
19+
https://github.com/gsuitedevs/php-samples

examples/index.php

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
<ul>
3333
<li><a href="simple-query.php">A query using simple API access</a></li>
34-
<li><a href="url-shortener.php">Authorize a url shortener, using OAuth 2.0 authentication.</a></li>
3534
<li><a href="batch.php">An example of combining multiple calls into a batch request</a></li>
3635
<li><a href="service-account.php">A query using the service account functionality.</a></li>
3736
<li><a href="simple-file-upload.php">An example of a small file upload.</a></li>

examples/url-shortener.php

-144
This file was deleted.

tests/examples/indexTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testIndex()
2626
$crawler = $this->loadExample('index.php');
2727

2828
$nodes = $crawler->filter('li');
29-
$this->assertCount(9, $nodes);
29+
$this->assertCount(8, $nodes);
3030
$this->assertEquals('A query using simple API access', $nodes->first()->text());
3131
}
32-
}
32+
}

tests/examples/urlShortenerTest.php

-34
This file was deleted.

0 commit comments

Comments
 (0)