php - How to attach access token to a google calendar API request -


Many documents attach an access token without a clear token when authorizing Google API reference. The request I make is:

  https://www.googleapis.com/calendar/v3/calendars/mtnmath@mtnmath.com/events?ya29.1.AADTN   

I have removed most access tokens in the above line. This token was successfully received in the following way:

  $ client- & gt; Adscope ("https://www.googleapis.com/auth/calendar"); $ Customer & gt; AddScope ("https://www.googleapis.com/auth/calendar.readonly");   

and

  $ _ session ['access_token'] = $ client- & gt; GetAccessToken (); In Php,   

token will be sent to $ client- & gt; GetAccessToken (); I was not sure that the problem is attached to the token but it's a matter of concern about. The result was "403 forbidden" I would appreciate any suggestions.

I found a site that gives a clear example, although it still tries two The site to get from

appears to add the "access_token =" access token after the rule token.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -