Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Provides a list of the authenticated user's contacts merged with any connected profiles. The request throws a 400 error if 'personFields' is not specified.
See: People API Reference for people.people.connections.list
.
Synopsis
- type PeopleConnectionsListResource = "v1" :> (Capture "resourceName" Text :> ("connections" :> (QueryParam "syncToken" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" GFieldMask :> (QueryParam "requestSyncToken" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "sortOrder" Text :> (QueryParam "personFields" GFieldMask :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListConnectionsResponse)))))))))))))))
- peopleConnectionsList :: Text -> PeopleConnectionsList
- data PeopleConnectionsList
- pclSyncToken :: Lens' PeopleConnectionsList (Maybe Text)
- pclXgafv :: Lens' PeopleConnectionsList (Maybe Xgafv)
- pclUploadProtocol :: Lens' PeopleConnectionsList (Maybe Text)
- pclResourceName :: Lens' PeopleConnectionsList Text
- pclRequestMaskIncludeField :: Lens' PeopleConnectionsList (Maybe GFieldMask)
- pclRequestSyncToken :: Lens' PeopleConnectionsList (Maybe Bool)
- pclAccessToken :: Lens' PeopleConnectionsList (Maybe Text)
- pclUploadType :: Lens' PeopleConnectionsList (Maybe Text)
- pclSortOrder :: Lens' PeopleConnectionsList (Maybe Text)
- pclPersonFields :: Lens' PeopleConnectionsList (Maybe GFieldMask)
- pclPageToken :: Lens' PeopleConnectionsList (Maybe Text)
- pclPageSize :: Lens' PeopleConnectionsList (Maybe Int32)
- pclCallback :: Lens' PeopleConnectionsList (Maybe Text)
REST Resource
type PeopleConnectionsListResource = "v1" :> (Capture "resourceName" Text :> ("connections" :> (QueryParam "syncToken" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" GFieldMask :> (QueryParam "requestSyncToken" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "sortOrder" Text :> (QueryParam "personFields" GFieldMask :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListConnectionsResponse))))))))))))))) Source #
A resource alias for people.people.connections.list
method which the
PeopleConnectionsList
request conforms to.
Creating a Request
peopleConnectionsList Source #
Creates a value of PeopleConnectionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PeopleConnectionsList Source #
Provides a list of the authenticated user's contacts merged with any connected profiles. The request throws a 400 error if 'personFields' is not specified.
See: peopleConnectionsList
smart constructor.
Instances
Request Lenses
pclSyncToken :: Lens' PeopleConnectionsList (Maybe Text) Source #
A sync token returned by a previous call to `people.connections.list`. Only resources changed since the sync token was created will be returned. Sync requests that specify `sync_token` have an additional rate limit.
pclUploadProtocol :: Lens' PeopleConnectionsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pclResourceName :: Lens' PeopleConnectionsList Text Source #
The resource name to return connections for. Only `people/me` is valid.
pclRequestMaskIncludeField :: Lens' PeopleConnectionsList (Maybe GFieldMask) Source #
- *Required.** Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`.
pclRequestSyncToken :: Lens' PeopleConnectionsList (Maybe Bool) Source #
Whether the response should include a sync token, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit.
pclAccessToken :: Lens' PeopleConnectionsList (Maybe Text) Source #
OAuth access token.
pclUploadType :: Lens' PeopleConnectionsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pclSortOrder :: Lens' PeopleConnectionsList (Maybe Text) Source #
The order in which the connections should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`.
pclPersonFields :: Lens' PeopleConnectionsList (Maybe GFieldMask) Source #
- *Required.** A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos
- relations * relationshipInterests * relationshipStatuses * residences
- sipAddresses * skills * taglines * urls * userDefined
pclPageToken :: Lens' PeopleConnectionsList (Maybe Text) Source #
The token of the page to be returned.
pclPageSize :: Lens' PeopleConnectionsList (Maybe Int32) Source #
The number of connections to include in the response. Valid values are between 1 and 2000, inclusive. Defaults to 100.
pclCallback :: Lens' PeopleConnectionsList (Maybe Text) Source #
JSONP