.Token()

Task<string> api.Token()

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 is async and will return a Task which will resolves to a string containing the access token to be used with the <script> tag to access a data set.

Example

var api = new CloudTables.Api("sub-domain", ":apiKey");

let token = await api.Token();

Will result in a string such as:

ANnbgUJoKO8qh5fYObpffdNqqgANtVVL