Python
from playbookNetworkClient import PlaybookClient def setup(self): self.playbookClient = PlaybookClient() self.playbookClient.set_api_key({your api key}) def get_user(self): user = self.playbookClient.get_user_data()
{ "id": "uuid", "cognito_id": "uuid", "tier_id": "uuid", "email": "user@domain.com", "status": "Active", "user_type": "normal", "name": "John Doe", "gpu_usage_total": 250, "gpu_usage_billing_period": 250 }
Gets the current Playbook User
Your API key. This is required by most endpoints to access our API programatically. You can view your x-api-key using the 'Profile' tab on the website.
Successful Response
The response is of type object.
object