anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Tasks API Example not working, "Please copy this code, switch to your application and paste it there:" #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Filled in values for clientId, apiKey, clientSecret
2. Run Tasks API Example (the latest version from SVN)
3. In the WebBrowser, go through the Allow Access process 
4. Browser stops at "Please copy this code, switch to your application and 
paste it there" view and never proceeds

What is the expected output?
Tasks.

What do you see instead?
The "Please copy this code, switch to your application and paste it there:" 
page.

What version of the product are you using? On what operating system?
WAMP (PHP 5), Google API's from the repository

Original issue reported on code.google.com by adam.r...@gmail.com on 2 Jan 2012 at 7:16

GoogleCodeExporter commented 9 years ago
Hey Adam,

It looks like you have the wrong application type selected in the Google API 
Console.

Visit the Google API Console: https://code.google.com/apis/console/?api=tasks
- From the "Services" screen, activate access to "Google+ API".
- Click on "API Access" in the left column
- Click the button labeled "Create an OAuth2 client ID"
- Give your application a name and click "Next"
- Select "Web Application" as the "Application type"

Original comment by chirags@google.com on 19 Mar 2012 at 11:00