google + api person的朋友

Kee*_*eto 9 javascript api google-plus

我正在尝试建立一个基于谷歌+ api的网站.我刚刚开始研究api,似乎他们没有像facebook那样提取一个人的圈子和朋友的方法.api实际上非常小,我想确保我没有错过任何东西.所以有人使用谷歌+ api并从用户的个人资料中提取朋友信息.

Lef*_*ium 9

有一个未记录的API.Google+会通过这些电话来呈现Google+信息页:

在X的圈子里:

https://plus.google.com/u/0/_/socialgraph/lookup/visible/?o=%5Bnull%2Cnull%2C%22GOOGLEPLUSUSERID%22%5D&rt=j

在谁的圈子里?

https://plus.google.com/u/0/_/socialgraph/lookup/incoming/?o=%5Bnull%2Cnull%2C%22GOOGLEPLUSUSERID%22%5D&n=1000&rt=j

通过片段:查找谁在谁圈出谁...


偷看Google+源代码会显示一大堆其他网址:

var cRa = new UD("/_/socialgraph/lookup/circles/", ND, "Error loading circles"),
    dRa = new UD("/_/socialgraph/lookup/circles_changes/", ND, "Error loading circles changes");
new UD("/_/socialgraph/lookup/external_sites/", WQa, "Error loading external sites");
var eRa = new UD("/_/socialgraph/lookup/visible/", ND, "Error loading people in common"),
    fRa = new UD("/_/socialgraph/lookup/incoming/", ND, "Error loading people that have the user in public circles"),
    gRa = new UD("/_/socialgraph/lookup/followers/", ND, 'Error loading "People who\'ve added you"'),
    hRa = new UD("/_/socialgraph/lookup/ignored/", ND, "Error loading people you've ignored");
new UD("/_/socialgraph/lookup/followingcircles/", XQa, "Error loading your circles");
var iRa = new UD("/_/socialgraph/mutate/modifyfollowingcircles/", SD, "Error modifying your circles"),
    jRa = new UD("/_/socialgraph/lookup/people/", ND, "Failed lookup");
new UD("/_/socialgraph/lookup/follower/", VQa, "Error loading whether a person has added you");
var kRa = new UD("/_/socialgraph/lookup/settings/", QD, "Error loading settings"),
    lRa = new UD("/_/socialgraph/mutate/settings/", bRa, "Error storing settings"),
    mRa = new UD("/_/socialgraph/lookup/find_more_people/", ID, 'Error loading "Find people"'),
    nRa = new UD("/_/socialgraph/lookup/close_friend_suggestions/", ID, "Error loading close friend suggestions"),
    oRa = new UD("/_/socialgraph/lookup/check_imports/", PQa, "Error loading newly imported people"),
    pRa = new UD("/_/socialgraph/get/circlenamesuggestions/", JD, "Error fetching suggested circle names");
new UD("/_/socialgraph/get/num_invites_remaining/", TQa, "Failed to get number of invites remaining");
var qRa = new UD("/_/socialgraph/get/invite_token/", SQa, "Failed to get invite token"),
    rRa = new UD("/_/socialgraph/get/inviters/", RQa, ""),
    sRa = new UD("/_/socialgraph/mutate/create/", QQa, "Error creating circle"),
    tRa = new UD("/_/socialgraph/mutate/modifymemberships/", HD, "Error changing circle memberships."),
    uRa = new UD("/_/socialgraph/mutate/removemember/", TD, "Error removing members from circle"),
    vRa = new UD("/_/socialgraph/mutate/revert/", aRa, "Error occured while trying to undo your last action"),
    wRa = new UD("/_/socialgraph/mutate/properties/", RD, "Error changing circle properties"),
    xRa = new UD("/_/socialgraph/mutate/sortorder/", YQa, "Error reordering circles"),
    yRa = new UD("/_/socialgraph/mutate/delete/", KD, "Error deleting circle"),
    zRa = new UD("/_/socialgraph/mutate/deletemem/", LD, "Error deleting people"),
    ARa = new UD("/_/socialgraph/mutate/block_user/", GD, "Error blocking user"),
    BRa = new UD("/_/socialgraph/mutate/block_user/", GD, "Error unblocking user"),
    CRa = new UD("/_/socialgraph/mutate/block_user/", GD, "Error reporting and blocking user"),
    DRa = new UD("/_/socialgraph/mutate/removefromcontacts/", ZQa, "Error removing people from contacts");
new UD("/_/socialgraph/lookup/circlepicker/", MD, "Error loading circles data");
var ERa = new UD("/_/socialgraph/lookup/hovercards/", PD, "Error loading hovercard data"),
    FRa = new UD("/_/socialgraph/lookup/peopleincommon/", ND, "Error loading people in common"),
    GRa = new UD("/_/socialgraph/notification/invite/", UQa, "Error inviting members"),
    HRa = new UD("/_/socialgraph/mutate/block_user/", GD, "Error ignoring members"),
    IRa = new UD("/_/socialgraph/mutate/block_user/", GD, "Error unignoring members");
Run Code Online (Sandbox Code Playgroud)


Mar*_*iak 7

目前,Google+ API是早期的开发者预览版.您唯一能做的就是以只读方式访问公共信息.但是,有关Google Plus平台的错误和功能请求的官方问题跟踪器.

更具体地说,您想要拥有的功能(访问圈子和朋友)也有一个未解决的问题.确保"解决"此问题,以便在方法最终可用时收到通知.此外,发布问题的人越多,发布的可能性就越快(显然,Google员工会浏览此列表以确定哪些功能要求很多,哪些功能不需要).

编辑:正如Nicholas指出的那样,现在确实可以使用人员/列表检索朋友列表,前提是您使用新的auth.loginOAuth范围,这样您就可以访问用户选择与您分享的所有人应用.