wsapiwrapper.
ApiWrapper
Wraps calls to wsbackend APIs.
Uses the Requests HTTP library to call wsbackend web APIs.
__init__
Constructor for ApiWrapper.
baseurl (str) – Websensor backend base URL.
auth_header
Get a dictionary of headers. One contains an API access token. This is needed for some API requests to be authorized.
tokenstr (str) – API access token
a dictionary containing two HTTP headers.
dict