Books API . promooffer

Instance Methods

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

Accepts the promo offer.

close()

Close httplib2 connections.

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

Marks the promo offer as dismissed.

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

Returns a list of promo offers available to the user

Method Details

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

Args:
  androidId: string, device android_id
  device: string, device device
  manufacturer: string, device manufacturer
  model: string, device model
  offerId: string, A parameter
  product: string, device product
  serial: string, device serial
  volumeId: string, Volume id to exercise the offer
  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(androidId=None, device=None, manufacturer=None, model=None, offerId=None, product=None, serial=None, x__xgafv=None)
Marks the promo offer as dismissed.

Args:
  androidId: string, device android_id
  device: string, device device
  manufacturer: string, device manufacturer
  model: string, device model
  offerId: string, Offer to dimiss
  product: string, device product
  serial: string, device serial
  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(androidId=None, device=None, manufacturer=None, model=None, product=None, serial=None, x__xgafv=None)
Returns a list of promo offers available to the user

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

Returns:
  An object of the form:

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