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 |
Inserts a new account for a user
See: Google Mirror API Reference for mirror.accounts.insert
.
Synopsis
- type AccountsInsertResource = "mirror" :> ("v1" :> ("accounts" :> (Capture "userToken" Text :> (Capture "accountType" Text :> (Capture "accountName" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account)))))))
- accountsInsert :: Text -> Account -> Text -> Text -> AccountsInsert
- data AccountsInsert
- aiAccountName :: Lens' AccountsInsert Text
- aiPayload :: Lens' AccountsInsert Account
- aiUserToken :: Lens' AccountsInsert Text
- aiAccountType :: Lens' AccountsInsert Text
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
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:
data AccountsInsert Source #
Inserts a new account for a user
See: accountsInsert
smart constructor.
Instances
Request Lenses
aiAccountName :: Lens' AccountsInsert Text Source #
The name of the account to be passed to the Android Account Manager.
aiUserToken :: Lens' AccountsInsert Text Source #
The ID for the user.
aiAccountType :: Lens' AccountsInsert Text Source #
Account type to be passed to Android Account Manager.