Books API . promooffer

Instance Methods

accept(device=None, manufacturer=None, product=None, androidId=None, serial=None, model=None, volumeId=None, offerId=None, x__xgafv=None)

Accepts the promo offer.

close()

Close httplib2 connections.

dismiss(model=None, serial=None, product=None, device=None, offerId=None, androidId=None, manufacturer=None, x__xgafv=None)

Marks the promo offer as dismissed.

get(product=None, manufacturer=None, serial=None, model=None, device=None, androidId=None, x__xgafv=None)

Returns a list of promo offers available to the user

Method Details

accept(device=None, manufacturer=None, product=None, androidId=None, serial=None, model=None, volumeId=None, offerId=None, x__xgafv=None)
Accepts the promo offer.

Args:
  device: string, device device
  manufacturer: string, device manufacturer
  product: string, device product
  androidId: string, device android_id
  serial: string, device serial
  model: string, device model
  volumeId: string, Volume id to exercise the offer
  offerId: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
  }
close()
Close httplib2 connections.
dismiss(model=None, serial=None, product=None, device=None, offerId=None, androidId=None, manufacturer=None, x__xgafv=None)
Marks the promo offer as dismissed.

Args:
  model: string, device model
  serial: string, device serial
  product: string, device product
  device: string, device device
  offerId: string, Offer to dimiss
  androidId: string, device android_id
  manufacturer: string, device manufacturer
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
  }
get(product=None, manufacturer=None, serial=None, model=None, device=None, androidId=None, x__xgafv=None)
Returns a list of promo offers available to the user

Args:
  product: string, device product
  manufacturer: string, device manufacturer
  serial: string, device serial
  model: string, device model
  device: string, device device
  androidId: string, device android_id
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
    "kind": "A String", # Resource type.
    "items": [ # A list of offers.
      {
        "artUrl": "A String",
        "gservicesKey": "A String",
        "items": [
          {
            "coverUrl": "A String",
            "author": "A String",
            "canonicalVolumeLink": "A String",
            "volumeId": "A String",
            "title": "A String",
            "description": "A String",
          },
        ],
        "id": "A String",
      },
    ],
  }