NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Always "unauthorized_client" #94

Closed camiyu917 closed 8 years ago

camiyu917 commented 8 years ago

I used "AuthToken" to authcatate my account. Buy always get errot "unauthorized_client". Do I need to enable witch Google APIs or Google Service?

camiyu917 commented 8 years ago

Solved, I should use auth code from this link: https://accounts.google.com/AccountChooser?continue=https://accounts.google.com/o/oauth2/auth?scope%3Dopenid%2Bemail%2Bhttps://www.googleapis.com/auth/userinfo.email%26response_type%3Dcode%26redirect_uri%3Durn:ietf:wg:oauth:2.0:oob%26client_id%3D848232511240-73ri3t7plvk96pj4f85uj8otdat2alem.apps.googleusercontent.com%26from_login%3D1%26as%3D3b2aeb02ba3f6e9a&ltmpl=embedded&btmpl=authsub&scc=1&oauth=1 ?