Google Wallet API . walletobjects . v1 . privateContent

Instance Methods

close()

Close httplib2 connections.

uploadPrivateData(body=None, x__xgafv=None)

Upload private data (text or URI) and returns an Id to be used in its place.

Method Details

close()
Close httplib2 connections.
uploadPrivateData(body=None, x__xgafv=None)
Upload private data (text or URI) and returns an Id to be used in its place.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request for sending user private Text or URI by the Issuer.
  "issuerId": "A String", # The ID of the issuer sending the data.
  "text": { # Private data for TextModule. This data will be rendered as a TextModule for a pass. # Private text data of the user.
    "body": { # Translated strings for the body.
      "defaultValue": { # Contains the string to be displayed if no appropriate translation is available.
        "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
        "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
        "value": "A String", # The UTF-8 encoded translated string.
      },
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#localizedString"`.
      "translatedValues": [ # Contains the translations for the string.
        {
          "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
          "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
          "value": "A String", # The UTF-8 encoded translated string.
        },
      ],
    },
    "header": { # Translated strings for the header.
      "defaultValue": { # Contains the string to be displayed if no appropriate translation is available.
        "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
        "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
        "value": "A String", # The UTF-8 encoded translated string.
      },
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#localizedString"`.
      "translatedValues": [ # Contains the translations for the string.
        {
          "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
          "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
          "value": "A String", # The UTF-8 encoded translated string.
        },
      ],
    },
  },
  "uri": { # Private data for LinkModule. This data will be rendered as the LinkModule for a pass. # Private URIs of the user.
    "description": { # The URI's title appearing in the app as text and its translated strings. Recommended maximum is 20 characters to ensure the full string is displayed on smaller screens.
      "defaultValue": { # Contains the string to be displayed if no appropriate translation is available.
        "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
        "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
        "value": "A String", # The UTF-8 encoded translated string.
      },
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#localizedString"`.
      "translatedValues": [ # Contains the translations for the string.
        {
          "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string `"walletobjects#translatedString"`.
          "language": "A String", # Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
          "value": "A String", # The UTF-8 encoded translated string.
        },
      ],
    },
    "uri": "A String", # The location of a web page, image, or other resource. URIs in the `LinksModuleData` can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address).
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for uploading user private data (text or URIs)
  "privateContentId": "A String", # A 64-bit content id for the private data that was uploaded by the Issuer.
}