Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Str NameLoad body If BoolOpAnd NameLoad NameLoad CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareLt NameLoad Num body Return NameLoad orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareEq NameLoad Num body If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr orelse Assign NameStore Dict Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Str NameLoad Assign NameStore Dict Str Str Str Str NameLoad Str NameLoad NameLoad orelse Assign NameStore Dict Str Str Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr orelse Assign NameStore Dict Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad orelse Assign NameStore Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr orelse Assign NameStore Dict Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad orelse Assign NameStore Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str NameLoad NameLoad NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpSub NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str NameLoad NameLoad NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpSub NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Dict Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num NameLoad NameLoad body Assign NameStore Str Assign NameStore Str If NameLoad body Assign NameStore Str If NameLoad body Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Str Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareNotEq NameLoad NameLoad body Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Dict Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list Expr Str ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str NameLoad NameLoad NameLoad body If CompareNotEq NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Expr Str FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Index Num decorator_list decorator_list ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Dict Str Str Str Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A N/A Python library for interfacing with Beebotte.

Contains methods for sending persistent and transient messages and for reading data.
 N/A __version__ 0.4.0 N/A json N/A time N/A hmac N/A base64 N/A hashlib N/A requests email utils N/A N/A N/A urllib.parse urllib N/A N/A N/A ImportError N/A N/A urllib N/A __publicReadEndpoint__ /v1/public/data/read N/A __readEndpoint__ /v1/data/read N/A __writeEndpoint__ /v1/data/write N/A __publishEndpoint__ /v1/data/publish N/A __connectionsEndpoint__ /v1/connections N/A __channelsEndpoint__ /v1/channels BBT N/A N/A N/A akey None N/A skey None N/A token None N/A hostname None N/A port None N/A ssl None N/A 
  Creates and maintains an object holding user credentials and connection parameters to be used as needed.

  @param akey: The user's API key (access key) to be passed along the authentication parameters.
  @param skey: The user's secret key to be used to sign API calls.
  @param hostname: The host name where the API is implemented.
  @param port: The port number.
  @param ssl: Indicates if SSL (TLS) should be used.
   __init__ N/A N/A self akey skey token hostname port ssl N/A None None None api.beebotte.com 80 False N/A N/A N/A akey skey N/A token None N/A N/A N/A self akey akey N/A N/A self skey skey N/A N/A N/A N/A akey None N/A skey None token N/A N/A N/A self token token N/A N/A N/A InitializationError Initialization Error; Message: You must specify either (1) your access and secret keys pair or (2) your channel token! N/A N/A self hostname hostname N/A N/A self port port N/A N/A self ssl ssl N/A N/A 
  Utility function that signs the given string with the secret key using SHA1 HMAC and returns a string containing
  the access key followed by column followed by the hash in base64.

  @param stringToSign: The string data to sign.

  @return: returns a string containing the access key followed by column followed by the SHA1 HMAC of the string to sign using the secret key encoded in base64.
    This signature format is used to authenticate API calls
   sign N/A N/A self stringToSign N/A N/A N/A signature N/A N/A hmac new N/A N/A N/A self skey encode N/A N/A stringToSign encode N/A hashlib sha1 N/A N/A %s:%s N/A N/A self akey N/A N/A bytes decode N/A N/A base64 b64encode N/A N/A signature digest N/A N/A 
  Creates a signature of an API call to authenticate the user and verify message integrity.

  @param verb: The HTTP verb (method) in upper case.
  @param uri: the API endpoint containing the query parameters.
  @param date: The date on the caller side.
  @param c_type: The Content type header, should be application/json.
  @param c_md5: The content MD5 hash of the data to send (should be set for POST requests)

  @return: returns the signature of the API call to be added as authorization header in the request to send.
   __signRequest__ N/A N/A self verb uri date c_type c_md5 N/A N/A N/A stringToSign N/A %s
%s
%s
%s
%s N/A verb c_md5 c_type date uri N/A N/A N/A self sign stringToSign N/A N/A 
  Checks if the given response data is OK or if an error occurred

  @param response: The response containing the response status and data

  @return: The response data in JSON if the status is OK, raises an exception otherwise (with the status code and error code)
   __processResponse__ N/A N/A self response N/A N/A N/A code N/A response N/A status N/A data N/A N/A N/A response N/A data N/A N/A data N/A N/A json loads N/A response N/A data N/A N/A code 400 N/A N/A data N/A N/A errcode N/A N/A data N/A error N/A code N/A errmsg N/A N/A data N/A error N/A message N/A N/A code 400 N/A N/A N/A errcode 1101 N/A N/A N/A AuthenticationError N/A Status: 400; Code 1101; Message: %s errmsg N/A N/A N/A errcode 1401 N/A N/A N/A ParameterError N/A Status: 400; Code 1401; Message: %s errmsg N/A N/A N/A errcode 1403 N/A N/A N/A BadRequestError N/A Status: 400; Code 1403; Message: %s errmsg N/A N/A N/A errcode 1404 N/A N/A N/A TypeError N/A Status: 400; Code 1404; Message: %s errmsg N/A N/A N/A errcode 1405 N/A N/A N/A BadTypeError N/A Status: 400; Code 1405; Message: %s errmsg N/A N/A N/A errcode 1406 N/A N/A N/A PayloadLimitError N/A Status: 400; Code 1406; Message: %s errmsg N/A N/A N/A UnexpectedError N/A Status: %s; Code %s; Message: %s N/A code errcode errmsg N/A N/A N/A code 405 N/A N/A N/A errcode 1102 N/A N/A N/A NotAllowedError N/A Status: 405; Code 1102; Message: %s errmsg N/A N/A N/A UnexpectedError N/A Status: %s; Code %s; Message: %s N/A code errcode errmsg N/A N/A N/A code 500 N/A N/A N/A errcode 1201 N/A N/A N/A InternalError N/A Status: 500; Code 1201; Message: %s errmsg N/A N/A N/A InternalError N/A Status: %s; Code %s; Message: %s N/A code errcode errmsg N/A N/A N/A code 404 N/A N/A N/A errcode 1301 N/A N/A N/A NotFoundError N/A Status: 404; Code 1301; Message: %s errmsg N/A N/A errcode 1302 N/A N/A N/A NotFoundError N/A Status: 404; Code 1302; Message: %s errmsg N/A N/A errcode 1303 N/A N/A N/A NotFoundError N/A Status: 404; Code 1303; Message: %s errmsg N/A N/A errcode 1304 N/A N/A N/A AlreadyExistError N/A Status: 404; Code 1304; Message: %s errmsg N/A N/A errcode 1305 N/A N/A N/A AlreadyExistError N/A Status: 404; Code 1305; Message: %s errmsg N/A N/A errcode 1306 N/A N/A N/A AlreadyExistError N/A Status: 404; Code 1306; Message: %s errmsg N/A N/A N/A UnexpectedError N/A Status: %s; Code %s; Message: %s N/A code errcode errmsg N/A N/A N/A UnexpectedError N/A Status: %s; Code %s; Message: %s N/A code errcode errmsg N/A N/A 
  Sends a POST request with the given data to the given URI endpoint and returns the response data.

  @param uri: The uri endpoint.
  @param data: the data to send.
  @param auth: Indicates if the request should be authenticated (defaults to true).

  @return: The response data in JSON format if success, raises an error or failure.
   __postData__ N/A N/A self uri data auth N/A True N/A N/A N/A self ssl N/A N/A url N/A %s://%s:%s%s N/A https N/A self hostname N/A self port uri N/A N/A url N/A %s://%s:%s%s N/A http N/A self hostname N/A self port uri N/A N/A self token N/A N/A auth N/A N/A headers N/A Content-Type X-Auth-Token application/json N/A self token N/A N/A headers N/A Content-Type application/json N/A N/A md5 N/A N/A bytes decode N/A N/A base64 b64encode N/A N/A N/A N/A hashlib md5 N/A N/A str encode data digest N/A date N/A N/A utils formatdate N/A auth N/A N/A sig N/A N/A self __signRequest__ POST uri date application/json md5 N/A headers N/A Content-MD5 Content-Type Date Authorization md5 application/json date sig N/A N/A headers N/A Content-MD5 Content-Type Date md5 application/json date N/A r N/A N/A requests post url data data headers headers N/A N/A N/A self __processResponse__ N/A status data N/A r status_code N/A r text N/A N/A 
  Sends a GET request with the given query parameters to the given URI endpoint and returns the response data.

  @param uri: The uri endpoint.
  @param query: the query parameters in JSON format.
  @param auth: Indicates if the request should be authenticated (defaults to true).

  @return: The response data in JSON format if success, raises an error or failure.
   __getData__ N/A N/A self uri query auth N/A True N/A N/A N/A self ssl N/A N/A url N/A %s://%s:%s%s N/A https N/A self hostname N/A self port uri N/A N/A url N/A %s://%s:%s%s N/A http N/A self hostname N/A self port uri N/A full_uri N/A %s uri N/A N/A query None N/A N/A full_uri N/A %s?%s N/A full_uri N/A N/A urllib urlencode query N/A N/A self token N/A N/A auth N/A N/A headers N/A Content-Type X-Auth-Token application/json N/A self token N/A N/A headers N/A Content-Type application/json N/A N/A date N/A N/A utils formatdate N/A auth N/A N/A sig N/A N/A self __signRequest__ GET full_uri date application/json N/A headers N/A Content-Type Date Authorization application/json date sig N/A N/A headers N/A Content-Type Date application/json date N/A r N/A N/A requests get url params query headers headers N/A N/A N/A self __processResponse__ N/A status data N/A r status_code N/A r text N/A N/A 
  Sends a DELETE request with the given query parameters to the given URI endpoint and returns the response data.

  @param uri: The uri endpoint.
  @param query: the query parameters in JSON format.
  @param auth: Indicates if the request should be authenticated (defaults to true).

  @return: The response data in JSON format if success, raises an error or failure.
   __deleteData__ N/A N/A self uri query auth N/A True N/A N/A N/A self ssl N/A N/A url N/A %s://%s:%s%s N/A https N/A self hostname N/A self port uri N/A N/A url N/A %s://%s:%s%s N/A http N/A self hostname N/A self port uri N/A full_uri N/A %s uri N/A N/A query None N/A N/A full_uri N/A %s?%s N/A full_uri N/A N/A urllib urlencode query N/A N/A self token N/A N/A auth N/A N/A headers N/A Content-Type X-Auth-Token application/json N/A self token N/A N/A headers N/A Content-Type application/json N/A N/A date N/A N/A utils formatdate N/A auth N/A N/A sig N/A N/A self __signRequest__ DELETE full_uri date application/json N/A headers N/A Content-Type Date Authorization application/json date sig N/A N/A headers N/A Content-Type Date application/json date N/A r N/A N/A requests delete url params query headers headers N/A N/A N/A self __processResponse__ N/A status data N/A r status_code N/A r text N/A N/A 
  Public Read
  Reads data from the resource with the given metadata. This method expects the resource to have public access. 
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with a Resources.
  This call will not be signed (no authentication required) as the resource is public.
  
  @param owner: required the owner (username) of the resource to read from.
  @param channel: required the channel name.
  @param resource: required the resource name to read from.
  @param limit: optional number of records to return.
  @param source: optional indicates whether to read from database or from historical statistics. Accepts ('raw', 'hour-stats', 'day-stats').
  @param time_range: optional indicates the timerange for the returned records. Accepts ('Xhour', 'Xday', 'Xweek', 'Xmonth') with X a positive integer, or ('today', 'yesterday', 'current-ween', 'last-week', 'current-month', 'last-month', 'ytd' ).
  @param data_filter filters data records to be returned
  @param sample_rate reduces the number of records to return (number between 0 and 1)
  
  @return: The response data in JSON format if success, raises an error or failure.
   readPublic N/A N/A self owner channel resource limit source time_range data_filter sample_rate N/A 750 raw None None None N/A N/A query N/A limit source limit source N/A time_range N/A N/A N/A query N/A time-range time_range N/A data_filter N/A N/A N/A query N/A filter data_filter N/A sample_rate N/A N/A N/A query N/A sample-rate N/A sample rate N/A endpoint N/A %s/%s/%s/%s N/A __publicReadEndpoint__ owner channel resource N/A response N/A N/A self __getData__ endpoint query False N/A response N/A N/A 
  Read
  Reads data from the resource with the given metadata. 
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  This call will be signed to authenticate the calling user.
  
  @param channel: required the channel name.
  @param resource: required the resource name to read from.
  @param limit: optional number of records to return.
  @param source: optional indicates whether to read from database or from historical statistics. Accepts ('raw', 'hour-stats', 'day-stats').
  @param time_range: optional indicates the timerange for the returned records. Accepts ('Xhour', 'Xday', 'Xweek', 'Xmonth') with X a positive integer, or ('today', 'yesterday', 'current-ween', 'last-week', 'current-month', 'last-month', 'ytd' ).
  @param data_filter filters data records to be returned
  @param sample_rate reduces the number of records to return (number between 0 and 1)
  
  @return: The response data in JSON format if success, raises an error or failure.
   read N/A N/A self channel resource limit source time_range data_filter sample_rate N/A 1 raw None None None N/A N/A query N/A limit source limit source N/A time_range N/A N/A N/A query N/A time-range time_range N/A data_filter N/A N/A N/A query N/A filter data_filter N/A sample_rate N/A N/A N/A query N/A sample-rate N/A sample rate N/A endpoint N/A %s/%s/%s N/A __readEndpoint__ channel resource N/A response N/A N/A self __getData__ endpoint query True N/A response N/A N/A 
  Write (Persistent messages)
  Writes data to the resource with the given metadata. 
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  This call will be signed to authenticate the calling user.
  
  @param channel: required the channel name.
  @param resource: required the resource name to read from.
  @param data: required the value to write (persist).
  @param ts: optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time. If it is set to zero, it will be ignored. In this case, the message timestamp would be Beebotte's reception time.
   
  @return: true on success, raises an error or failure.
   write N/A N/A self channel resource data ts N/A None N/A N/A body N/A data data N/A N/A ts None N/A N/A N/A body N/A ts ts N/A N/A N/A body N/A ts N/A round N/A N/A N/A time time 1000 N/A endpoint N/A %s/%s/%s N/A __writeEndpoint__ channel resource N/A response N/A N/A self __postData__ endpoint N/A N/A json dumps body separators N/A , : True N/A response N/A N/A 
  Bulk Write (Persistent messages)
  Writes an array of data in one API call. 
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  This call will be signed to authenticate the calling user.
  
  @param channel: required the channel name.
  @param data_array: required the data array to send. Should follow the following format
    [{
      resource required the resource name to read from.
      data required the value to write (persist).
      ts optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time.
    }]
   
  @return: true on success, raises an error or failure.
   writeBulk N/A N/A self channel data_array N/A N/A N/A body N/A records data_array N/A endpoint N/A %s/%s N/A __writeEndpoint__ channel N/A response N/A N/A self __postData__ endpoint N/A N/A json dumps body separators N/A , : True N/A response N/A N/A 
  Publish (Transient messages)
  Publishes data to the resource with the given metadata. The published data will not be persisted. It will only be delivered to connected subscribers. 
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  Publish operations does not require a resource to be initially configured on Beebotte.
  This call will be signed to authenticate the calling user.
  
  @param channel: required the channel name.
  @param resource: required the resource name to read from.
  @param data: required the data to publish (transient).
  @param ts: optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time.  If it is set to zero, it will be ignored. In this case, the message timestamp would be Beebotte's reception time
  @param source: optional additional data that will be appended to the published message. This can be a logical identifier (session id) of the originator. Use this as suits you.
   
  @return: true on success, raises an error or failure.
   publish N/A N/A self channel resource data ts source N/A None None N/A N/A body N/A data data N/A source N/A N/A N/A body N/A source source N/A N/A ts None N/A N/A N/A body N/A ts ts N/A N/A N/A body N/A ts N/A round N/A N/A N/A time time 1000 N/A endpoint N/A %s/%s/%s N/A __publishEndpoint__ channel resource N/A response N/A N/A self __postData__ endpoint N/A N/A json dumps body separators N/A , : True N/A response N/A N/A 
  Bulk Publish (Transient messages)
  Publishes an array of data in one API call.
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  Publish operations does not require a resource to be initially configured on Beebotte. 
  This call will be signed to authenticate the calling user.

  @param channel: required the channel name.
  @param data_array: required the data array to send. Should follow the following format
    [{
      resource required the resource name to read from.
      data required the value to write (persist).
      ts optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time.
      source: optional additional data that will be appended to the published message. This can be a logical identifier (session id) of the originator. Use this as suits you.
    }]

  @return: true on success, raises an error or failure.
   publishBulk N/A N/A self channel data_array N/A N/A N/A body N/A records data_array N/A endpoint N/A %s/%s N/A __publishEndpoint__ channel N/A response N/A N/A self __postData__ endpoint N/A N/A json dumps body separators N/A , : True N/A response N/A N/A 
  Client Authentication (used for the Presence and Resource subscription process)
  Signs the given subscribe metadata and returns the signature.

  @param sid: required the session id of the client.
  @param channel: required the channel name. Should start with 'presence:' for presence channels and starts with 'private:' for private channels.
  @param resource: optional the resource name to read from.
  @param ttl: optional the number of seconds the signature should be considered as valid (currently ignored) for future use.
  @param read: optional indicates if read access is requested.
  @param write: optional indicates if write access is requested.

  @return: JSON object containing 'auth' element with value equal to the generated signature.
   auth_client N/A N/A self sid channel resource ttl read write N/A * 0 False False N/A N/A r false N/A w false N/A read N/A N/A r true N/A write N/A N/A w true N/A stringToSign N/A %s:%s.%s.:ttl=%s:read=%s:write=%s N/A sid channel resource ttl r w N/A N/A N/A self sign stringToSign N/A N/A 
  USER CONNECTION MANAGEMENT ROUTINES
   N/A 
  Gets an Array of currently connected users (using the Websockets interface) with the given userid and session id.
  If no parameter is given, this method returns an array of all connected users.
  If @param userid is given, only connection with that user id will be given.
  If @param sid is also given, only connection with that userid and sid will be given.

  @param userid: optional the user identifier as given when connecting to the Websockets interface.
  @param sid: optional the session identifier of a Websockets connection.

  @return: Array of user connection description in JSON format on success, raises an error on failure.
   getUserConnections N/A N/A self userid sid N/A None None N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint __connectionsEndpoint__ N/A query None N/A N/A userid None N/A N/A endpoint N/A %s/%s N/A __connectionsEndpoint__ userid N/A N/A N/A sid None N/A N/A query N/A sid sid N/A response N/A N/A self __getData__ endpoint query True N/A response N/A N/A 
  Drops Websockets connection with the given userid and session id.
  If @param sid is is not provided, all connections with @param userid will be dropped.

  @param userid: required the user identifier as given when connecting to the Websockets interface.
  @param sid: optional the session identifier of a Websockets connection.

  @return: OK on success, raises an error on failure.
   dropUserConnection N/A N/A self userid sid N/A None N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A query None N/A N/A sid None N/A N/A query N/A sid sid N/A endpoint N/A %s/drop/%s N/A __connectionsEndpoint__ userid N/A response N/A N/A self __deleteData__ endpoint query True N/A response N/A N/A 
  CHANNEL AND RESOURCE MANAGEMENT ROUTINES
   N/A 
  Returns a resource or all resources of a given channel.
  If resource is given, only the specified resource description will be returned, otherwise, an array of
  all the resource descriptions of that channel will be returned.

  @param channel: required the channel name.
  @param resource: optional the resource name.
  @return Array of resurce descriptions on success, raises an error on failure.
   getResource N/A N/A self channel resource N/A None N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint N/A %s/%s/resources N/A __channelsEndpoint__ channel N/A N/A resource None N/A N/A endpoint N/A %s/%s N/A endpoint resource N/A response N/A N/A self __getData__ endpoint None True N/A response N/A N/A 
  Deletes a resource from a channel.

  @param channel: required the channel name.
  @param resource: required the resource name to read from.

  @return true on success, raises an error on failure.
   deleteResource N/A N/A self channel resource N/A N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint N/A %s/%s/resources/%s N/A __channelsEndpoint__ channel resource N/A response N/A N/A self __deleteData__ endpoint None True N/A response N/A N/A 
  Returns a description of the given channel or of all the user account's channels if channel is not provided.

  @param channel: optional the channel name.

  @return Array of channel descriptions on success, raises an error on failure.
   getChannel N/A N/A self channel N/A None N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint __channelsEndpoint__ N/A N/A channel None N/A N/A endpoint N/A %s/%s N/A endpoint channel N/A response N/A N/A self __getData__ endpoint None True N/A response N/A N/A 
  Deletes the specified channel from the user account's.

  @param channel: required the channel name to delete.

  @return true on success, raises an error on failure.
   deleteChannel N/A N/A self channel N/A N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint N/A %s/%s N/A __channelsEndpoint__ channel N/A response N/A N/A self __deleteData__ endpoint None True N/A response N/A N/A 
  Regenerates a new Channel Token for the given @channel if it exists.
  Regenerating a new Channel Token will invalidate the last active token. A channel can only have one Token at a time.

  @param channel: required the channel name.

  @return JSON description of the channel with the newly generated Token on success, raises an error on failure.
   regenerateChannelToken N/A N/A self channel N/A N/A N/A N/A N/A self skey None N/A N/A N/A AuthenticationError Authentication Error; Message: This method requires access key and secret key authentication! N/A endpoint N/A %s/%s/token/regenerate N/A __channelsEndpoint__ channel N/A response N/A N/A self __getData__ endpoint None True N/A response N/A N/A N/A 
Utility class for dealing with Resources
Contains methods for sending persistent and transient messages and for reading data.
Mainly wrappers around Beebotte API calls. 
 Resource N/A N/A N/A channel None N/A resource None N/A bbt None N/A 
  Constructor, initializes the Resource object.
  In Beebotte, resources follow a 2 level hierarchy: Channel -> Resource
  Data is always associated with Resources.
  
  @param bbt: required reference to the Beebotte client connector.
  @param channel: required channel name.
  @param resource: required resource name.
   __init__ N/A N/A self bbt channel resource N/A N/A N/A N/A self channel channel N/A N/A self resource resource N/A N/A self bbt bbt N/A N/A 
  Write (Persistent messages)
  Writes data to this resource. 
  This call will be signed to authenticate the calling user.
  
  @param data: required the value to write (persist).
  @param ts: optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time.
   
  @return: true on success, raises an error or failure.
   write N/A N/A self data ts N/A None N/A N/A N/A N/A N/A self bbt write N/A self channel N/A self resource ts ts data data N/A N/A 
  Publish (Transient messages)
  Publishes data to this resource. The published data will not be persisted. It will only be delivered to connected subscribers. 
  This call will be signed to authenticate the calling user.
  
  @param data: required the data to publish (transient).
  @param ts: optional timestamp in milliseconds (since epoch). If this parameter is not given, it will be automatically added with a value equal to the local system time.
   
  @return: true on success, raises an error or failure.
   publish N/A N/A self data ts N/A None N/A N/A N/A N/A N/A self bbt publish N/A self channel N/A self resource ts ts data data N/A N/A 
  Read
  Reads data from the this resource.
  If the owner is set (value different than None) the behaviour is Public Read (no authentication).
  If the owner is None, the behaviour is authenticated read.      
  
  @param limit: optional number of records to return.
  @param owner: optional the owner (username) of the resource to read from for public read. None to read from the user's owned channel.
  @param source: optional indicates whether to read from database or from historical statistics. Accepts ('raw', 'hour-stats', 'day-stats').
  @param time_range: optional indicates the timerange for the returned records. Accepts ('Xhour', 'Xday', 'Xweek', 'Xmonth') with X a positive integer, or ('today', 'yesterday', 'current-ween', 'last-week', 'current-month', 'last-month', 'ytd' ).
  @param data_filter filters data records to be returned
  @param sample_rate reduces the number of records to return (number between 0 and 1)
  
  @return: array of records (JSON) on success, raises an error or failure.
   read N/A N/A self limit owner source time_range data_filter sample_rate N/A 750 None raw None None None N/A N/A N/A owner None N/A N/A N/A N/A N/A self bbt publicRead owner N/A self channel N/A self resource limit source time_range data_filter sample_rate N/A N/A N/A N/A N/A self bbt read channel N/A self channel resource N/A self resource limit limit source source time_range time_range N/A N/A 
  Read
  Reads the last inserted record. 
  
  @return: the last inserted record on success, raises an error or failure.
   recentVal N/A N/A self N/A N/A N/A N/A N/A N/A N/A self bbt read N/A self channel N/A self resource limit 1 N/A 0 N/A N/A DataPoint N/A N/A N/A channel None N/A resource None N/A data None N/A ts None __init__ N/A N/A self data ts channel resource N/A None None N/A N/A N/A self channel channel N/A N/A self resource resource N/A N/A self data data N/A N/A self ts ts N/A fromJSON N/A N/A cls params N/A N/A N/A N/A cls data N/A params N/A data ts N/A params N/A ts N/A classmethod toJSON N/A N/A self owner N/A None N/A N/A N/A owner channel resource data ts owner N/A self channel N/A self resource N/A self data N/A self ts N/A N/A InitializationError N/A Exception N/A N/A N/A AuthenticationError N/A Exception N/A N/A N/A InternalError N/A Exception N/A N/A N/A NotFoundError N/A Exception N/A N/A N/A AlreadyExistError N/A Exception N/A N/A N/A NotAllowedError N/A Exception N/A N/A N/A UsageLimitError N/A Exception N/A N/A N/A PayloadLimitError N/A Exception N/A N/A N/A UnexpectedError N/A Exception N/A N/A N/A BadRequestError N/A Exception N/A N/A N/A ParameterError N/A Exception N/A N/A N/A TypeError N/A Exception N/A N/A N/A BadTypeError N/A Exception N/A N/A N/A