Web Content Publisher API . publications

Instance Methods

checkFreeAccess(name, httpReferrer=None, uri=None, x__xgafv=None)

Checks if a user is eligible for free article access.

checkProgramAccess(name, productId=None, swgUserToken=None, x__xgafv=None)

Checks if a reader has active program access.

close()

Close httplib2 connections.

Method Details

checkFreeAccess(name, httpReferrer=None, uri=None, x__xgafv=None)
Checks if a user is eligible for free article access.

Args:
  name: string, Required. The resource name of the publication. Format: publications/{publication} (required)
  httpReferrer: string, Required. The HTTP referrer.
  uri: string, Required. The URI of the content.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for CheckFreeAccess
  "isAllowed": True or False, # Output only. True if free access should be allowed, false otherwise.
}
checkProgramAccess(name, productId=None, swgUserToken=None, x__xgafv=None)
Checks if a reader has active program access.

Args:
  name: string, Required. The resource name of the publication. Format: publications/{publication} (required)
  productId: string, Required. The specific product ID being accessed.
  swgUserToken: string, Required. The encrypted site token string received from the Chrome HTTP header.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for `CheckProgramAccess`.
  "status": "A String", # The entitlement access status.
}
close()
Close httplib2 connections.