roniest / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

Won't recognize OAuth --> can't test Snippets API #211

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to 
https://apis-explorer.appspot.com/apis-explorer/?base=https%3A%2F%2Fsnippets-hrd
b.googleplex.com%2F_ah%2Fapi#p/snippets/v1/snippets.listByConstraints?_h=3&
2. Toggle OAuth to On and accept permissions
3. Click execute

What is the expected output? What do you see instead?
Expect to return my snippet data, instead I see

Request:
GET https://snippets-hrdb.googleplex.com/_ah/api/snippets/v1/snippets

Authorization:  Bearer 
ya29.ggCqgP5Yo3RQR2mrhdK7QYFFXkHb39-nlb00PDcUfFNmZbyf7KFZxpf0
X-JavaScript-User-Agent:  Google APIs Explorer

Response

401 Unauthorized

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Unauthenticated user for method SnippetsApi.getSnippets.\nPlease provide valid credentials including a valid client id and one of the following scopes: [https://www.googleapis.com/auth/snippets, https://www.googleapis.com/auth/snippets.readonly]. Non-whitelisted applications may also require the email scope,see b/5033463 for details.",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 401,
  "message": "Unauthenticated user for method SnippetsApi.getSnippets.\nPlease provide valid credentials including a valid client id and one of the following scopes: [https://www.googleapis.com/auth/snippets, https://www.googleapis.com/auth/snippets.readonly]. Non-whitelisted applications may also require the email scope,see b/5033463 for details."
 }
}

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by pwagner@google.com on 16 Sep 2014 at 5:54