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 all the products in a Manufacturer Center account.
See: Manufacturer Center API Reference for manufacturers.accounts.products.list
.
Synopsis
- type AccountsProductsListResource = "v1" :> (Capture "parent" Text :> ("products" :> (QueryParams "include" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListProductsResponse)))))))))))
- accountsProductsList :: Text -> AccountsProductsList
- data AccountsProductsList
- aplParent :: Lens' AccountsProductsList Text
- aplInclude :: Lens' AccountsProductsList [Text]
- aplXgafv :: Lens' AccountsProductsList (Maybe Xgafv)
- aplUploadProtocol :: Lens' AccountsProductsList (Maybe Text)
- aplAccessToken :: Lens' AccountsProductsList (Maybe Text)
- aplUploadType :: Lens' AccountsProductsList (Maybe Text)
- aplPageToken :: Lens' AccountsProductsList (Maybe Text)
- aplPageSize :: Lens' AccountsProductsList (Maybe Int32)
- aplCallback :: Lens' AccountsProductsList (Maybe Text)
REST Resource
type AccountsProductsListResource = "v1" :> (Capture "parent" Text :> ("products" :> (QueryParams "include" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListProductsResponse))))))))))) Source #
A resource alias for manufacturers.accounts.products.list
method which the
AccountsProductsList
request conforms to.
Creating a Request
Creates a value of AccountsProductsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsProductsList Source #
Lists all the products in a Manufacturer Center account.
See: accountsProductsList
smart constructor.
Instances
Request Lenses
aplParent :: Lens' AccountsProductsList Text Source #
Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
aplInclude :: Lens' AccountsProductsList [Text] Source #
The information to be included in the response. Only sections listed here will be returned.
aplUploadProtocol :: Lens' AccountsProductsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
aplAccessToken :: Lens' AccountsProductsList (Maybe Text) Source #
OAuth access token.
aplUploadType :: Lens' AccountsProductsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
aplPageToken :: Lens' AccountsProductsList (Maybe Text) Source #
The token returned by the previous request.
aplPageSize :: Lens' AccountsProductsList (Maybe Int32) Source #
Maximum number of product statuses to return in the response, used for paging.
aplCallback :: Lens' AccountsProductsList (Maybe Text) Source #
JSONP