Reputation: 2253
Here I integrate Google Calendar API for add event in Google Calendar from my site.
But once I click to generate token link its redirect me on manage your calendar screen. I kindly skip this screen while generating token.
Upvotes: 0
Views: 34
Reputation: 17651
This is required so you can't just skip it. This is the part of the authorization process for you to be able to perform tasks using the Calendar API. This is mentioned in the Authorizing requests with OAuth 2.0
.. 3. When your application needs access to user data, it asks Google for a particular scope of access.
Google displays a consent screen to the user, asking them to authorize your application to request some of their data.
If the user approves, then Google gives your application a short-lived access token.
Your application requests user data, attaching the access token to the request.
If Google determines that your request and the token are valid, it returns the requested data.
However, there's a programmatic way to access users data without any manual authorization on the users part. This is through service accounts.
Upvotes: 1