Skip to content

Commit a6e0c49

Browse files
committed
- Fixed incorrect method name in notify.php
- Cleaned up wording in README.md to match main doc - Added a note about the database to config.php
1 parent a741986 commit a6e0c49

File tree

7 files changed

+4
-566
lines changed

7 files changed

+4
-566
lines changed

.idea/copyright/profiles_settings.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.idea/scopes/scope_settings.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 544 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Google Mirror API's Quickstart for PHP
1+
Google Mirror API's Quick Start for PHP
22
========================
33

4-
The documentation for this quickstart is maintained on developers.google.com.
4+
The documentation for this quick start is maintained on developers.google.com.
55
Please see here for more information:
66
https://developers.google.com/glass/quickstart/php

config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424

2525
$base_url = "http://localhost/mirror-quickstart-php";
2626

27+
// This should be writable by your web server's user
2728
$sqlite_database = "/tmp/database.sqlite";

mirror-quickstart-php.iml

Lines changed: 0 additions & 9 deletions
This file was deleted.

notify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
$timeline_item = $mirror_service->timeline->get($timeline_item_id);
8282

8383
foreach($timeline_item->getAttachments() as $j => $attachment) {
84-
$attachment = $mirror_service->timeline->attachments->get($timeline_item_id, $attachment.getId());
84+
$attachment = $mirror_service->timeline_attachments->get($timeline_item_id, $attachment.getId());
8585
$bytes = download_attachment($timeline_item_id, $attachment);
8686

8787
// Insert a new timeline card, with a copy of that photo attached

0 commit comments

Comments
 (0)