4.2.2.1. Me¶
-
class
wsapiwrapper.consumer.user.
UserWrapper
(baseurl: str, tokenstr: str = None)[source]¶ Wraps users and me endpoints of the Consumer API. Consumers can retrieve more information about themselves (me) than they can about other users.
-
delete
() → None[source]¶ Delete current user.
Consumer API permits users to delete their own database entry.
Makes a DELETE request to the Me endpoint.
Current user is identified by an access token passed to the
constructor
.- Returns
None
-
get
() → dict[source]¶ Get current user.
Retrieves database record for the current user.
Makes a GET request to the Me endpoint.
Current user is identified by an access token passed to the
constructor
.- Returns
API representation of the current user.
- Return type
-
4.2.2.1.1. TagView¶
-
class
wsapiwrapper.consumer.tagview.
TagViewWrapper
(baseurl: str, tokenstr: str)[source]¶ -
-
get
(distinct: bool = False) → list[source]¶ Get a list of tag views by the current user.
Current user is identified by an API access token passed to the
constructor
.
-
4.2.2.1.2. Captures¶
-
class
wsapiwrapper.consumer.mecapture.
MeCaptureWrapper
(baseurl: str, tokenstr: str = None)[source]¶ Create and retrieve captures linked to the current user.
-
get
(distinct: bool = False)[source]¶ Get a list of captures made by the current user.
Makes a GET request to the MeCaptures endpoint.
Current user is identified by an access token passed to the
constructor
.
-
post
(circbufb64: str, serial: str, statusb64: str, timeintb64: str, versionStr: str) → dict[source]¶ Create a new capture. Record that it was made by the current user.
See
wsapiwrapper.consumer.capture.CaptureWrapper.post()
.Current user is identified by an access token passed to the
constructor
.
-