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 |
Retrieves the status of a Merchant Center account. Multi-client accounts can only call this method for sub-accounts.
See: Content API for Shopping Reference for content.accountstatuses.get
.
Synopsis
- type AccountstatusesGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accountstatuses" :> (Capture "accountId" (Textual Word64) :> (QueryParams "destinations" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] AccountStatus))))))
- accountstatusesGet :: Word64 -> Word64 -> AccountstatusesGet
- data AccountstatusesGet
- aaMerchantId :: Lens' AccountstatusesGet Word64
- aaAccountId :: Lens' AccountstatusesGet Word64
- aaDestinations :: Lens' AccountstatusesGet [Text]
REST Resource
type AccountstatusesGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accountstatuses" :> (Capture "accountId" (Textual Word64) :> (QueryParams "destinations" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] AccountStatus)))))) Source #
A resource alias for content.accountstatuses.get
method which the
AccountstatusesGet
request conforms to.
Creating a Request
Creates a value of AccountstatusesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountstatusesGet Source #
Retrieves the status of a Merchant Center account. Multi-client accounts can only call this method for sub-accounts.
See: accountstatusesGet
smart constructor.
Instances
Request Lenses
aaMerchantId :: Lens' AccountstatusesGet Word64 Source #
The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
aaAccountId :: Lens' AccountstatusesGet Word64 Source #
The ID of the account.
aaDestinations :: Lens' AccountstatusesGet [Text] Source #
If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.