# Google+ API . people

## Instance Methods

Get a person's profile.

List all of the people in the specified collection for a particular activity.

Retrieves the next page of results.

Search all public profiles.

Retrieves the next page of results.

### Method Details

`get(userId)`

    Get a person's profile.

    Args:
      userId: string, The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user. (required)

    Returns:
      An object of the form:

        {
        "relationshipStatus": "A String", # The person's relationship status. Possible values are:
            # - "single" - Person is single.
            # - "in_a_relationship" - Person is in a relationship.
            # - "engaged" - Person is engaged.
            # - "married" - Person is married.
            # - "its_complicated" - The relationship is complicated.
            # - "open_relationship" - Person is in an open relationship.
            # - "widowed" - Person is widowed.
            # - "in_domestic_partnership" - Person is in a domestic partnership.
            # - "in_civil_union" - Person is in a civil union.
        "organizations": [ # A list of current or past organizations with which this person is associated.
          {
            "startDate": "A String", # The date the person joined this organization.
            "endDate": "A String", # The date the person left this organization.
            "description": "A String", # A short description of the person's role in this organization.
            "title": "A String", # The person's job title or role within the organization.
            "primary": True or False, # If "true", indicates this organization is the person's primary one (typically interpreted as current one).
            "location": "A String", # The location of this organization.
            "department": "A String", # The department within the organization.
            "type": "A String", # The type of organization. Possible values are:
                # - "work" - Work.
                # - "school" - School.
            "name": "A String", # The name of the organization.
          },
        ],
        "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
        "displayName": "A String", # The name of this person, suitable for display.
        "name": { # An object representation of the individual components of a person's name.
          "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
          "middleName": "A String", # The middle name of this person.
          "familyName": "A String", # The family name (last name) of this person.
          "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
          "givenName": "A String", # The given name (first name) of this person.
          "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
        },
        "url": "A String", # The URL of this person's profile.
        "gender": "A String", # The person's gender. Possible values are:
            # - "male" - Male gender.
            # - "female" - Female gender.
            # - "other" - Other.
        "aboutMe": "A String", # A short biography for this person.
        "tagline": "A String", # The brief description (tagline) of this person.
        "placesLived": [ # A list of places where this person has lived.
          {
            "primary": True or False, # If "true", this place of residence is this person's primary residence.
            "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
          },
        ],
        "emails": [ # A list of email addresses for this person.
          {
            "type": "A String", # The type of address. Possible values are:
                # - "home" - Home email address.
                # - "work" - Work email address.
                # - "other" - Other.
            "primary": True or False, # If "true", indicates this email address is the person's primary one.
            "value": "A String", # The email address.
          },
        ],
        "nickname": "A String", # The nickname of this person.
        "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
        "urls": [ # A list of URLs for this person.
          {
            "type": "A String", # The type of URL. Possible values are:
                # - "home" - URL for home.
                # - "work" - URL for work.
                # - "blog" - URL for blog.
                # - "profile" - URL for profile.
                # - "other" - Other.
            "primary": True or False, # If "true", this URL is the person's primary URL.
            "value": "A String", # The URL value.
          },
        ],
        "image": { # The representation of the person's profile photo.
          "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
        },
        "hasApp": True or False, # If "true", indicates that the person has installed the app that is making the request and has chosen to expose this install state to the caller. A value of "false" indicates that the install state cannot be determined (it is either not installed or the person has chosen to keep this information private).
        "id": "A String", # The ID of this person.
        "languagesSpoken": [ # The languages spoken by this person.
          "A String",
        ],
        "currentLocation": "A String", # The current location for this person.
      }

`listByActivity(activityId, collection, pageToken=None, maxResults=None)`

    List all of the people in the specified collection for a particular activity.

    Args:
      activityId: string, The ID of the activity to get the list of people for. (required)
      collection: string, The collection of people to list. (required)
        Allowed values
          plusoners - List all people who have +1'd this activity.
          resharers - List all people who have reshared this activity.
      pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
      maxResults: integer, The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.

    Returns:
      An object of the form:

        {
        "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
        "items": [ # The people in this page of results. Each item will include the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.
          {
            "relationshipStatus": "A String", # The person's relationship status. Possible values are:
                # - "single" - Person is single.
                # - "in_a_relationship" - Person is in a relationship.
                # - "engaged" - Person is engaged.
                # - "married" - Person is married.
                # - "its_complicated" - The relationship is complicated.
                # - "open_relationship" - Person is in an open relationship.
                # - "widowed" - Person is widowed.
                # - "in_domestic_partnership" - Person is in a domestic partnership.
                # - "in_civil_union" - Person is in a civil union.
            "organizations": [ # A list of current or past organizations with which this person is associated.
              {
                "startDate": "A String", # The date the person joined this organization.
                "endDate": "A String", # The date the person left this organization.
                "description": "A String", # A short description of the person's role in this organization.
                "title": "A String", # The person's job title or role within the organization.
                "primary": True or False, # If "true", indicates this organization is the person's primary one (typically interpreted as current one).
                "location": "A String", # The location of this organization.
                "department": "A String", # The department within the organization.
                "type": "A String", # The type of organization. Possible values are:
                    # - "work" - Work.
                    # - "school" - School.
                "name": "A String", # The name of the organization.
              },
            ],
            "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
            "displayName": "A String", # The name of this person, suitable for display.
            "name": { # An object representation of the individual components of a person's name.
              "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
              "middleName": "A String", # The middle name of this person.
              "familyName": "A String", # The family name (last name) of this person.
              "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
              "givenName": "A String", # The given name (first name) of this person.
              "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
            },
            "url": "A String", # The URL of this person's profile.
            "gender": "A String", # The person's gender. Possible values are:
                # - "male" - Male gender.
                # - "female" - Female gender.
                # - "other" - Other.
            "aboutMe": "A String", # A short biography for this person.
            "tagline": "A String", # The brief description (tagline) of this person.
            "placesLived": [ # A list of places where this person has lived.
              {
                "primary": True or False, # If "true", this place of residence is this person's primary residence.
                "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
              },
            ],
            "emails": [ # A list of email addresses for this person.
              {
                "type": "A String", # The type of address. Possible values are:
                    # - "home" - Home email address.
                    # - "work" - Work email address.
                    # - "other" - Other.
                "primary": True or False, # If "true", indicates this email address is the person's primary one.
                "value": "A String", # The email address.
              },
            ],
            "nickname": "A String", # The nickname of this person.
            "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
            "urls": [ # A list of URLs for this person.
              {
                "type": "A String", # The type of URL. Possible values are:
                    # - "home" - URL for home.
                    # - "work" - URL for work.
                    # - "blog" - URL for blog.
                    # - "profile" - URL for profile.
                    # - "other" - Other.
                "primary": True or False, # If "true", this URL is the person's primary URL.
                "value": "A String", # The URL value.
              },
            ],
            "image": { # The representation of the person's profile photo.
              "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
            },
            "hasApp": True or False, # If "true", indicates that the person has installed the app that is making the request and has chosen to expose this install state to the caller. A value of "false" indicates that the install state cannot be determined (it is either not installed or the person has chosen to keep this information private).
            "id": "A String", # The ID of this person.
            "languagesSpoken": [ # The languages spoken by this person.
              "A String",
            ],
            "currentLocation": "A String", # The current location for this person.
          },
        ],
        "kind": "plus#peopleFeed", # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
        "selfLink": "A String", # Link to this resource.
        "title": "A String", # The title of this collection of people.
      }

`listByActivity_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.

`search(query, pageToken=None, language=None, maxResults=None)`

    Search all public profiles.

    Args:
      query: string, Full-text search query string. (required)
      pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
      language: string, Specify the preferred language to search with. See Language Codes for available values.
      maxResults: integer, The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.

    Returns:
      An object of the form:

        {
        "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
        "items": [ # The people in this page of results. Each item will include the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.
          {
            "relationshipStatus": "A String", # The person's relationship status. Possible values are:
                # - "single" - Person is single.
                # - "in_a_relationship" - Person is in a relationship.
                # - "engaged" - Person is engaged.
                # - "married" - Person is married.
                # - "its_complicated" - The relationship is complicated.
                # - "open_relationship" - Person is in an open relationship.
                # - "widowed" - Person is widowed.
                # - "in_domestic_partnership" - Person is in a domestic partnership.
                # - "in_civil_union" - Person is in a civil union.
            "organizations": [ # A list of current or past organizations with which this person is associated.
              {
                "startDate": "A String", # The date the person joined this organization.
                "endDate": "A String", # The date the person left this organization.
                "description": "A String", # A short description of the person's role in this organization.
                "title": "A String", # The person's job title or role within the organization.
                "primary": True or False, # If "true", indicates this organization is the person's primary one (typically interpreted as current one).
                "location": "A String", # The location of this organization.
                "department": "A String", # The department within the organization.
                "type": "A String", # The type of organization. Possible values are:
                    # - "work" - Work.
                    # - "school" - School.
                "name": "A String", # The name of the organization.
              },
            ],
            "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
            "displayName": "A String", # The name of this person, suitable for display.
            "name": { # An object representation of the individual components of a person's name.
              "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
              "middleName": "A String", # The middle name of this person.
              "familyName": "A String", # The family name (last name) of this person.
              "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
              "givenName": "A String", # The given name (first name) of this person.
              "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
            },
            "url": "A String", # The URL of this person's profile.
            "gender": "A String", # The person's gender. Possible values are:
                # - "male" - Male gender.
                # - "female" - Female gender.
                # - "other" - Other.
            "aboutMe": "A String", # A short biography for this person.
            "tagline": "A String", # The brief description (tagline) of this person.
            "placesLived": [ # A list of places where this person has lived.
              {
                "primary": True or False, # If "true", this place of residence is this person's primary residence.
                "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
              },
            ],
            "emails": [ # A list of email addresses for this person.
              {
                "type": "A String", # The type of address. Possible values are:
                    # - "home" - Home email address.
                    # - "work" - Work email address.
                    # - "other" - Other.
                "primary": True or False, # If "true", indicates this email address is the person's primary one.
                "value": "A String", # The email address.
              },
            ],
            "nickname": "A String", # The nickname of this person.
            "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
            "urls": [ # A list of URLs for this person.
              {
                "type": "A String", # The type of URL. Possible values are:
                    # - "home" - URL for home.
                    # - "work" - URL for work.
                    # - "blog" - URL for blog.
                    # - "profile" - URL for profile.
                    # - "other" - Other.
                "primary": True or False, # If "true", this URL is the person's primary URL.
                "value": "A String", # The URL value.
              },
            ],
            "image": { # The representation of the person's profile photo.
              "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
            },
            "hasApp": True or False, # If "true", indicates that the person has installed the app that is making the request and has chosen to expose this install state to the caller. A value of "false" indicates that the install state cannot be determined (it is either not installed or the person has chosen to keep this information private).
            "id": "A String", # The ID of this person.
            "languagesSpoken": [ # The languages spoken by this person.
              "A String",
            ],
            "currentLocation": "A String", # The current location for this person.
          },
        ],
        "kind": "plus#peopleFeed", # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
        "selfLink": "A String", # Link to this resource.
        "title": "A String", # The title of this collection of people.
      }

`search_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.