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 information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.
See: People API Reference for people.people.getBatchGet
.
Synopsis
- type PeopleGetBatchGetResource = "v1" :> ("people:batchGet" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "personFields" GFieldMask :> (QueryParams "resourceNames" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GetPeopleResponse))))))))))
- peopleGetBatchGet :: PeopleGetBatchGet
- data PeopleGetBatchGet
- pgbgXgafv :: Lens' PeopleGetBatchGet (Maybe Xgafv)
- pgbgUploadProtocol :: Lens' PeopleGetBatchGet (Maybe Text)
- pgbgRequestMaskIncludeField :: Lens' PeopleGetBatchGet (Maybe GFieldMask)
- pgbgAccessToken :: Lens' PeopleGetBatchGet (Maybe Text)
- pgbgUploadType :: Lens' PeopleGetBatchGet (Maybe Text)
- pgbgPersonFields :: Lens' PeopleGetBatchGet (Maybe GFieldMask)
- pgbgResourceNames :: Lens' PeopleGetBatchGet [Text]
- pgbgCallback :: Lens' PeopleGetBatchGet (Maybe Text)
REST Resource
type PeopleGetBatchGetResource = "v1" :> ("people:batchGet" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "personFields" GFieldMask :> (QueryParams "resourceNames" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GetPeopleResponse)))))))))) Source #
A resource alias for people.people.getBatchGet
method which the
PeopleGetBatchGet
request conforms to.
Creating a Request
peopleGetBatchGet :: PeopleGetBatchGet Source #
Creates a value of PeopleGetBatchGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PeopleGetBatchGet Source #
Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.
See: peopleGetBatchGet
smart constructor.
Instances
Request Lenses
pgbgUploadProtocol :: Lens' PeopleGetBatchGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgbgRequestMaskIncludeField :: Lens' PeopleGetBatchGet (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`.
pgbgAccessToken :: Lens' PeopleGetBatchGet (Maybe Text) Source #
OAuth access token.
pgbgUploadType :: Lens' PeopleGetBatchGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgbgPersonFields :: Lens' PeopleGetBatchGet (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
pgbgResourceNames :: Lens' PeopleGetBatchGet [Text] Source #
The resource names of the people to provide information about. - To get information about the authenticated user, specify `people/me`. - To get information about a google account, specify `people/`account_id. - To get information about a contact, specify the resource name that identifies the contact as returned by `people.connections.list`. You can include up to 50 resource names in one request.
pgbgCallback :: Lens' PeopleGetBatchGet (Maybe Text) Source #
JSONP