4.2.2.2. Tag

class wsapiwrapper.consumer.tag.TagWrapper(baseurl: str, tokenstr: str = None)[source]

Wraps calls to tag endpoints on the Consumer API

get(tagserial: str)dict[source]
Parameters

tagserial (str) – Base64 serial that uniquely identifies a tag (hardware module).

Returns: Tag dictionary as described here.

4.2.2.2.1. Scanned

class wsapiwrapper.consumer.tagscanned.TagScannedWrapper(baseurl: str, tokenstr: str = None)[source]

Wraps a Consumer API endpoint for determining if a tag has been scanned by a user.

get(tagserial: str)bool[source]

Makes a GET request to the TagScanned Consumer API endpoint.

Current user is identified by an access token passed to the constructor.

Parameters

tagserial (str) – Base64 serial that uniquely identifies a tag (hardware module).

Returns

True if the tag has been scanned a user identified in the token header. False otherwise.

Return type

bool