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.
See: Manufacturer Center API Reference for manufacturers.accounts.products.get
.
- type AccountsProductsGetResource = "v1" :> (Capture "parent" Text :> ("products" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Product)))))))))))
- accountsProductsGet :: Text -> Text -> AccountsProductsGet
- data AccountsProductsGet
- apgParent :: Lens' AccountsProductsGet Text
- apgXgafv :: Lens' AccountsProductsGet (Maybe Xgafv)
- apgUploadProtocol :: Lens' AccountsProductsGet (Maybe Text)
- apgPp :: Lens' AccountsProductsGet Bool
- apgAccessToken :: Lens' AccountsProductsGet (Maybe Text)
- apgUploadType :: Lens' AccountsProductsGet (Maybe Text)
- apgBearerToken :: 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 :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
See: accountsProductsGet
smart constructor.
Request Lenses
apgParent :: Lens' AccountsProductsGet Text Source #
Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
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").
apgBearerToken :: Lens' AccountsProductsGet (Maybe Text) Source #
OAuth bearer token.
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