google+ api person's friends

前端 未结 4 573
轻奢々
轻奢々 2021-02-03 11:18

I am trying to make a website based on google+ api. I just started looking into the api and it seems they dont have a method to extract a person\'s circles and friends as facebo

4条回答
  •  花落未央
    2021-02-03 12:04

    Looks like it's now available! Here is the documentation: https://developers.google.com/+/api/latest/people/get

    Request

    GET https://www.googleapis.com/plus/v1/people/**userId**/people/**collection**
    

    userId - String - User ID who to fetch.

    collection - String - The collection of people to list.

    Response

    If successful, this method returns a response body with the following structure:

    {
      "kind": "plus#peopleFeed",
      "etag": etag,
      "selfLink": string,
      "title": string,
      "nextPageToken": string,
      "totalItems": integer,
      "items": [
        people Resource
      ]
    }
    

    Requires Scope - https://www.googleapis.com/auth/plus.login

提交回复
热议问题