gogol-mirror-0.0.1: Google Mirror SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Mirror.Accounts.Insert

Contents

Description

Inserts a new account for a user

See: Google Mirror API Reference for mirror.accounts.insert.

Synopsis

REST Resource

type AccountsInsertResource = "mirror" :> ("v1" :> ("accounts" :> (Capture "userToken" Text :> (Capture "accountType" Text :> (Capture "accountName" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Account :> Post `[JSON]` Account))))))) Source

A resource alias for mirror.accounts.insert method which the AccountsInsert request conforms to.

Creating a Request

accountsInsert Source

Creates a value of AccountsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

aiAccountName :: Lens' AccountsInsert Text Source

The name of the account to be passed to the Android Account Manager.

aiPayload :: Lens' AccountsInsert Account Source

Multipart request metadata.

aiUserToken :: Lens' AccountsInsert Text Source

The ID for the user.

aiAccountType :: Lens' AccountsInsert Text Source

Account type to be passed to Android Account Manager.