2016-06-21 17 views

回答

0

在請求訪問代碼的同時設置用戶加個人資料和user.info的範圍,並且您將能夠獲取用戶信息。

+0

我已經提供了這些範圍「https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/fitness.activity.read https://www.googleapis.com /auth/fitness.activity.write https://www.googleapis.com/auth/fitness.body.read https://www.googleapis.com/auth/fitness.body.write https://www.googleapis。 com/auth/fitness.location.read https://www.googleapis.com/auth/fitness.location.write「但是我沒有找到一個url結尾poitn來獲取用戶配置文件,如gplus中的」https:// www .googleapis.com/plus/v1/people/me /?access_token = {YOUR_ACCESS_TOKEN}。 –

+0

使用https://www.googleapis.com/auth/userinfo.email作爲另一個範圍來獲取電子郵件 –

相關問題