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.

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_id} (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, # True if free access should be allowed, false otherwise.
}
close()
Close httplib2 connections.