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 |
Lists the sub-accounts in your Merchant Center account.
See: Content API for Shopping Reference for content.accounts.list
.
Synopsis
- type AccountsListResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AccountsListResponse))))))
- accountsList :: Word64 -> AccountsList
- data AccountsList
- allMerchantId :: Lens' AccountsList Word64
- allPageToken :: Lens' AccountsList (Maybe Text)
- allMaxResults :: Lens' AccountsList (Maybe Word32)
REST Resource
type AccountsListResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AccountsListResponse)))))) Source #
A resource alias for content.accounts.list
method which the
AccountsList
request conforms to.
Creating a Request
Creates a value of AccountsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsList Source #
Lists the sub-accounts in your Merchant Center account.
See: accountsList
smart constructor.
Instances
Request Lenses
allMerchantId :: Lens' AccountsList Word64 Source #
The ID of the managing account. This must be a multi-client account.
allPageToken :: Lens' AccountsList (Maybe Text) Source #
The token returned by the previous request.
allMaxResults :: Lens' AccountsList (Maybe Word32) Source #
The maximum number of accounts to return in the response, used for paging.