sscarpa / 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

Why the param name is $accessToken? #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I was redirected to here from:
http://stackoverflow.com/questions/11019375/why-the-param-name-is-accesstoken/

So renaming this parameter would nice (to $credentials or whatever), because 
it's not too clear.. It's not consistent with the documentation, too.

Original issue reported on code.google.com by adam.fil...@gmail.com on 24 Jun 2012 at 4:43

GoogleCodeExporter commented 8 years ago
Thanks for the suggestion. The name is such as from a practical point of view 
it represents the access token - if there is a refresh token for example, it 
will automatically be used to mint a new access token if the one in the bundle 
had expired. This is consistent with several other oAuth 2.0 implementations. 
Good question though!

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:20