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
}{
"detail": [
"<unknown>"
]
}Users
Get Users
Gets the current Playbook User
GET
/
users
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
}{
"detail": [
"<unknown>"
]
}Headers
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.