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 person resource for a resource name. Use `people/me` to indicate the authenticated user.
See: Google People API Reference for people.people.get
.
- type PeopleGetResource = "v1" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Person))))))))))
- peopleGet :: Text -> PeopleGet
- data PeopleGet
- pgXgafv :: Lens' PeopleGet (Maybe Text)
- pgUploadProtocol :: Lens' PeopleGet (Maybe Text)
- pgResourceName :: Lens' PeopleGet Text
- pgRequestMaskIncludeField :: Lens' PeopleGet (Maybe Text)
- pgPp :: Lens' PeopleGet Bool
- pgAccessToken :: Lens' PeopleGet (Maybe Text)
- pgUploadType :: Lens' PeopleGet (Maybe Text)
- pgBearerToken :: Lens' PeopleGet (Maybe Text)
- pgCallback :: Lens' PeopleGet (Maybe Text)
REST Resource
type PeopleGetResource = "v1" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "requestMask.includeField" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Person)))))))))) Source #
A resource alias for people.people.get
method which the
PeopleGet
request conforms to.
Creating a Request
Creates a value of PeopleGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Provides information about a person resource for a resource name. Use `people/me` to indicate the authenticated user.
See: peopleGet
smart constructor.
Request Lenses
pgUploadProtocol :: Lens' PeopleGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgResourceName :: Lens' PeopleGet Text Source #
The resource name of the person to provide information about. - To get information about the authenticated user, specify `people/me`. - To get information about any user, specify the resource name that identifies the user, such as the resource names returned by `people.connections.list`.
pgRequestMaskIncludeField :: Lens' PeopleGet (Maybe Text) Source #
Comma-separated list of fields to be included in the response. Omitting this field will include all fields. Each path should start with `person.`: for example, `person.names` or `person.photos`.