import{ ShadowClient }from'@shadowob/sdk'// Login and get a tokenconst client =newShadowClient('https://shadowob.com','')const{ token, user }=await client.login({ email:'[email protected]', password:'secret',})// Use the token for subsequent requestsconst authedClient =newShadowClient('https://shadowob.com', token)const me =await authedClient.getMe()
from shadowob_sdk import ShadowClient
# Login and get a tokenclient = ShadowClient("https://shadowob.com","")result = client.login(email="[email protected]", password="secret")token = result["token"]# Use the token for subsequent requestsclient = ShadowClient("https://shadowob.com", token)me = client.get_me()