I am testing the Gmail API.
So far I have done the following:
- I have created the project in the Google Developers Console
- I have enabled the Gmail API.
- I have created a new Client IDand theclient secret.
- In my PHP script I have installed the PHP Client library and followed the instructions for the setup in PHP.
So now when I run the file quickstart.php it gives a link. When I open it, it appears an authorization page where I authorize my application to access the Gmail API.
Then it redirects to the Redirect URIs that I have declared in the setup (adding the code parameter).
In the address bar it appears exactly this:
http://localhost/main/gmail_callback?code=MY_CODE
Where main is my controller and gmail_callback so far is just a blank function.
And it should be correct since these are my settings:
- Javascript origins: http://localhost
- Redirect URIs: http://localhost/main/gmail_callback
What do I do next?
 
     
     
    