proknow.Session
Session
- class proknow.Session.Session(proknow, requestor)
This class should be used to interact with the current session. It is instantiated for you as an attribute of the
proknow.ProKnow.ProKnow
class.- get()
Gets the current user session.
- Returns:
A dictionary of user session attributes.
- Return type:
dict
- Raises:
proknow.Exceptions.HttpError – If the HTTP request generated an error.
Example
Use this method to get the user session:
from proknow import ProKnow pk = ProKnow('https://example.proknow.com', credentials_file="./credentials.json") session = pk.session.get() print(session["name"])