Package apiclient :: Module push |
[hide private]
[frames] | no frames]

# Module push

source code

    Push notifications support.

    This code is based on experimental APIs and is subject to change.

Author: afshar@google.com (Ali Afshar)

Classes | [hide private]
| InvalidSubscriptionRequestError The request cannot be subscribed.
| Channel Base class for channel types.
| WebhookChannel Channel for registering web hook notifications.
| Headers Headers for managing subscriptions.
| Subscription Information about a subscription.

Functions | [hide private]
new_token() Gets a random token for use as a client_token in push notifications. | source code

Variables | [hide private]
| SUBSCRIBE = `'X-GOOG-SUBSCRIBE'`
| SUBSCRIPTION_ID = `'X-GOOG-SUBSCRIPTION-ID'`
| TOPIC_ID = `'X-GOOG-TOPIC-ID'`
| TOPIC_URI = `'X-GOOG-TOPIC-URI'`
| CLIENT_TOKEN = `'X-GOOG-CLIENT-TOKEN'`
| EVENT_TYPE = `'X-GOOG-EVENT-TYPE'`
| UNSUBSCRIBE = `'X-GOOG-UNSUBSCRIBE'`

Function Details | [hide private]

### new_token() | source code
    Gets a random token for use as a client_token in push notifications.

    Returns:
      str, a new random token.