gogol-partners-0.0.1: Google Partners SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Partners.Companies.Get

Contents

Description

Gets a company.

See: Google Partners API Reference for partners.companies.get.

Synopsis

REST Resource

type CompaniesGetResource = "v2" :> ("companies" :> (Capture "companyId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "currencyCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "address" Text :> (QueryParam "requestMetadata.partnersSessionId" Text :> (QueryParam "bearer_token" Text :> (QueryParam "requestMetadata.locale" Text :> (QueryParam "view" Text :> (QueryParams "requestMetadata.experimentIds" Text :> (QueryParam "requestMetadata.userOverrides.ipAddress" Text :> (QueryParam "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` GetCompanyResponse))))))))))))))))))))) Source

A resource alias for partners.companies.get method which the CompaniesGet request conforms to.

Creating a Request

Request Lenses

cgXgafv :: Lens' CompaniesGet (Maybe Text) Source

V1 error format.

cgCurrencyCode :: Lens' CompaniesGet (Maybe Text) Source

If the company's budget is in a different currency code than this one, then the converted budget is converted to this currency code.

cgUploadProtocol :: Lens' CompaniesGet (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

cgCompanyId :: Lens' CompaniesGet Text Source

The ID of the company to retrieve.

cgOrderBy :: Lens' CompaniesGet (Maybe Text) Source

How to order addresses within the returned company. Currently, only `address` and `address desc` is supported which will sorted by closest to farthest in distance from given address and farthest to closest distance from given address respectively.

cgPp :: Lens' CompaniesGet Bool Source

Pretty-print response.

cgUploadType :: Lens' CompaniesGet (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

cgAddress :: Lens' CompaniesGet (Maybe Text) Source

The address to use for sorting the company's addresses by proximity. If not given, the geo-located address of the request is used. Used when order_by is set.

cgRequestMetadataLocale :: Lens' CompaniesGet (Maybe Text) Source

Locale to use for the current request.

cgView :: Lens' CompaniesGet (Maybe Text) Source

The view of `Company` resource to be returned. This must not be `COMPANY_VIEW_UNSPECIFIED`.

cgRequestMetadataExperimentIds :: Lens' CompaniesGet [Text] Source

Experiment IDs the current request belongs to.

cgRequestMetadataUserOverridesIPAddress :: Lens' CompaniesGet (Maybe Text) Source

IP address to use instead of the user's geo-located IP address.

cgRequestMetadataTrafficSourceTrafficSubId :: Lens' CompaniesGet (Maybe Text) Source

Second level identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.

cgRequestMetadataUserOverridesUserId :: Lens' CompaniesGet (Maybe Text) Source

Logged-in user ID to impersonate instead of the user's ID.

cgRequestMetadataTrafficSourceTrafficSourceId :: Lens' CompaniesGet (Maybe Text) Source

Identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.