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 products in your Merchant Center account. This method can only be called for non-multi-client accounts.
See: Content API for Shopping Reference for content.products.list
.
- type ProductsListResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "includeInvalidInsertedItems" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ProductsListResponse)))))))
- productsList :: Word64 -> ProductsList
- data ProductsList
- proMerchantId :: Lens' ProductsList Word64
- proIncludeInvalidInsertedItems :: Lens' ProductsList (Maybe Bool)
- proPageToken :: Lens' ProductsList (Maybe Text)
- proMaxResults :: Lens' ProductsList (Maybe Word32)
REST Resource
type ProductsListResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "includeInvalidInsertedItems" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ProductsListResponse))))))) Source #
A resource alias for content.products.list
method which the
ProductsList
request conforms to.
Creating a Request
Creates a value of ProductsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductsList Source #
Lists the products in your Merchant Center account. This method can only be called for non-multi-client accounts.
See: productsList
smart constructor.
Request Lenses
proMerchantId :: Lens' ProductsList Word64 Source #
The ID of the managing account.
proIncludeInvalidInsertedItems :: Lens' ProductsList (Maybe Bool) Source #
Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
proPageToken :: Lens' ProductsList (Maybe Text) Source #
The token returned by the previous request.
proMaxResults :: Lens' ProductsList (Maybe Word32) Source #
The maximum number of products to return in the response, used for paging.