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 group owned by the authenticated user.
See: People API Reference for people.contactGroups.create
.
Synopsis
- type ContactGroupsCreateResource = "v1" :> ("contactGroups" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateContactGroupRequest :> Post '[JSON] ContactGroup))))))))
- contactGroupsCreate :: CreateContactGroupRequest -> ContactGroupsCreate
- data ContactGroupsCreate
- cgcXgafv :: Lens' ContactGroupsCreate (Maybe Xgafv)
- cgcUploadProtocol :: Lens' ContactGroupsCreate (Maybe Text)
- cgcAccessToken :: Lens' ContactGroupsCreate (Maybe Text)
- cgcUploadType :: Lens' ContactGroupsCreate (Maybe Text)
- cgcPayload :: Lens' ContactGroupsCreate CreateContactGroupRequest
- cgcCallback :: Lens' ContactGroupsCreate (Maybe Text)
REST Resource
type ContactGroupsCreateResource = "v1" :> ("contactGroups" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateContactGroupRequest :> Post '[JSON] ContactGroup)))))))) Source #
A resource alias for people.contactGroups.create
method which the
ContactGroupsCreate
request conforms to.
Creating a Request
Creates a value of ContactGroupsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ContactGroupsCreate Source #
Create a new contact group owned by the authenticated user.
See: contactGroupsCreate
smart constructor.
Instances
Request Lenses
cgcUploadProtocol :: Lens' ContactGroupsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cgcAccessToken :: Lens' ContactGroupsCreate (Maybe Text) Source #
OAuth access token.
cgcUploadType :: Lens' ContactGroupsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cgcPayload :: Lens' ContactGroupsCreate CreateContactGroupRequest Source #
Multipart request metadata.
cgcCallback :: Lens' ContactGroupsCreate (Maybe Text) Source #
JSONP