Reputation: 1
I have enabled mirror API for my project in developer console. I authorized mirror API and generated an access token in the OAuth playground. Building a request in playground or sending it manually I always get 403 error. Can anyone help?
wget --header="Authorization: Bearer access-token" --header="Content-Type: application/json" --post-data="{ \"text\": \"Hello world\" }" https://www.googleapis.com/mirror/v1/timeline --2014-02-07 00:35:00-- https://www.googleapis.com/mirror/v1/timeline Resolving www.googleapis.com (www.googleapis.com)... 74.125.129.95, 2607:f8b0:400e:c04::5f Connecting to www.googleapis.com (www.googleapis.com)|74.125.129.95|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2014-02-07 00:35:00 ERROR 403: Forbidden.
Upvotes: 0
Views: 220
Reputation: 15533
1) Building a request in playground
On Glass Playground site there is a red button named Show Playground usage information at the bottom.
If you click that button you'll see the To give the Playground access to a timeline information.
To give the Playground access to a timeline:
2) Building a request programmatically
If you have 403: Forbidden
error while sending TimelineItem
s programmatically, that's probably because you are not using the correct values of your clientId and clientSecret.
Edit: Three items are copied from Glass Playground site(under the red button).
Upvotes: 1