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 |
Create a new contact and return the person resource for that contact.
See: People API Reference for people.people.createContact
.
Synopsis
- type PeopleCreateContactResource = "v1" :> ("people:createContact" :> (QueryParam "parent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Person :> Post '[JSON] Person)))))))))
- peopleCreateContact :: Person -> PeopleCreateContact
- data PeopleCreateContact
- pccParent :: Lens' PeopleCreateContact (Maybe Text)
- pccXgafv :: Lens' PeopleCreateContact (Maybe Xgafv)
- pccUploadProtocol :: Lens' PeopleCreateContact (Maybe Text)
- pccAccessToken :: Lens' PeopleCreateContact (Maybe Text)
- pccUploadType :: Lens' PeopleCreateContact (Maybe Text)
- pccPayload :: Lens' PeopleCreateContact Person
- pccCallback :: Lens' PeopleCreateContact (Maybe Text)
REST Resource
type PeopleCreateContactResource = "v1" :> ("people:createContact" :> (QueryParam "parent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Person :> Post '[JSON] Person))))))))) Source #
A resource alias for people.people.createContact
method which the
PeopleCreateContact
request conforms to.
Creating a Request
Creates a value of PeopleCreateContact
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PeopleCreateContact Source #
Create a new contact and return the person resource for that contact.
See: peopleCreateContact
smart constructor.
Instances
Request Lenses
pccParent :: Lens' PeopleCreateContact (Maybe Text) Source #
The resource name of the owning person resource.
pccUploadProtocol :: Lens' PeopleCreateContact (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pccAccessToken :: Lens' PeopleCreateContact (Maybe Text) Source #
OAuth access token.
pccUploadType :: Lens' PeopleCreateContact (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pccPayload :: Lens' PeopleCreateContact Person Source #
Multipart request metadata.
pccCallback :: Lens' PeopleCreateContact (Maybe Text) Source #
JSONP