How to get the friend list using Google+ API OAuth 2.0

一世执手 提交于 2019-12-03 21:19:47

You need to use: $plus->people->listPeople, you can find an example of usage in the PHP quick start app.

First of all, you should make sure you're using the https://www.googleapis.com/auth/plus.login OAuth2 scope to make sure they permit you to access some or all of their friends lists. You want to use the people.list API access point as documented here and detailed further on this page. Although they don't give a PHP code sample, I think you'll be able to use the $plus->people->list to make the call and get the information you want.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!