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 |
Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.
See: Manufacturer Center API Reference for manufacturers.accounts.products.get
.
Synopsis
- type AccountsProductsGetResource = "v1" :> (Capture "parent" Text :> ("products" :> (Capture "name" Text :> (QueryParams "include" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Product))))))))))
- accountsProductsGet :: Text -> Text -> AccountsProductsGet
- data AccountsProductsGet
- apgParent :: Lens' AccountsProductsGet Text
- apgInclude :: Lens' AccountsProductsGet [Text]
- apgXgafv :: Lens' AccountsProductsGet (Maybe Xgafv)
- apgUploadProtocol :: Lens' AccountsProductsGet (Maybe Text)
- apgAccessToken :: Lens' AccountsProductsGet (Maybe Text)
- apgUploadType :: Lens' AccountsProductsGet (Maybe Text)
- apgName :: Lens' AccountsProductsGet Text
- apgCallback :: Lens' AccountsProductsGet (Maybe Text)
REST Resource
type AccountsProductsGetResource = "v1" :> (Capture "parent" Text :> ("products" :> (Capture "name" Text :> (QueryParams "include" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Product)))))))))) Source #
A resource alias for manufacturers.accounts.products.get
method which the
AccountsProductsGet
request conforms to.
Creating a Request
Creates a value of AccountsProductsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsProductsGet Source #
Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.
See: accountsProductsGet
smart constructor.
Instances
Request Lenses
apgParent :: Lens' AccountsProductsGet Text Source #
Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
apgInclude :: Lens' AccountsProductsGet [Text] Source #
The information to be included in the response. Only sections listed here will be returned.
apgUploadProtocol :: Lens' AccountsProductsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
apgAccessToken :: Lens' AccountsProductsGet (Maybe Text) Source #
OAuth access token.
apgUploadType :: Lens' AccountsProductsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
apgName :: Lens' AccountsProductsGet Text Source #
Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
apgCallback :: Lens' AccountsProductsGet (Maybe Text) Source #
JSONP