You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solved. The problem was that the first step that the API asks you for in its official tutorial is to click on the "Enable Google Calendar API" button, where it asks you to write the URL of your web server. The description says: "this is the path in your application that users are redirected to after they have authenticated with Google. The path will be appended with the authorization code for access". The problem was that I wrote the home path of my application myapp.com/, but my application never "stays" in that path but automatically redirects to myapp/sessions/login, so the code for access was "lost". Now that I changed the path to miapp/sessions/login I could see the code appended to that path.
Solved. The problem was that the first step that the API asks you for in its official tutorial is to click on the "Enable Google Calendar API" button, where it asks you to write the URL of your web server. The description says: "this is the path in your application that users are redirected to after they have authenticated with Google. The path will be appended with the authorization code for access". The problem was that I wrote the home path of my application myapp.com/, but my application never "stays" in that path but automatically redirects to myapp/sessions/login, so the code for access was "lost". Now that I changed the path to miapp/sessions/login I could see the code appended to that path.
To clarify, when you go through the authorization process and reach the URI callback (mine was simply https://google.com), the code will be held as the first parameter in the URL. For example, my URL would be something like this:
https://www.google.com/?code={CODE WILL BE HERE}&scope.......
Simply copy the space labeled {CODE WILL BE HERE} in the above line. Once authorized, a file named token.json should be created and automatically used from that point on.
Expected Behavior
After following the link printed in the console when doing the quickstart, an authorization code should appear so I can copy-paste it in my console.
Actual Behavior
I can access the link, which guides me through the following steps:
Where is the code I should see to copy and paste into my console?
Specifications
The text was updated successfully, but these errors were encountered: