Package simplify :: Class DataToken
[hide private]
[frames] | no frames]

Class DataToken

source code

domain.Domain --+
                |
               DataToken

A DataToken object.

Instance Methods [hide private]

Inherited from domain.Domain: __getitem__, __init__, __setitem__, __str__, class_name, to_dict

Static Methods [hide private]
 
create(params, *auth_args)
Creates an DataToken object
source code
 
find(object_id, *auth_args)
Retrieve a DataToken object from the API
source code
Method Details [hide private]

create(params, *auth_args)
Static Method

source code 

Creates an DataToken object

Parameters:
  • params - a dict of parameters; valid keys are:
  • auth_args - an Authentication object used for the API call. If no value is passed the gloabl keys simplify.public_key and simplify.private_key are used. For backwards compatibility the public and private keys may be passed instead of an Authentication object.
  • private_api_key - Private key to use for the API call. If None, the value of simplify.private_key will be used.
Returns:
a DataToken object

find(object_id, *auth_args)
Static Method

source code 

Retrieve a DataToken object from the API

Parameters:
  • object_id - ID of object to retrieve
  • auth_args - an Authentication object used for the API call. If no value is passed the gloabl keys simplify.public_key and simplify.private_key are used. For backwards compatibility the public and private keys may be passed instead of an Authentication object.
Returns:
a DataToken object