.token()

.token(): Dictionary

Get an access token. Note that this value is cached per API instance. It need only be obtained from the CloudTables servers once.

Parameters

  • N/A

Returns

This method returns a dictionary containing a status and a token string to be used with the <script> tag to access a data set.

Example

api = CloudTablesApi(':apiKey', subdomain='sub-domain')
token = api.token()

Will result in a dictionary such as:

{
  "success": true,
  "token": "tq5821QDwyU4wtJrAaocHs0y1Cev5v8p"
}