Features
Python Objects
# Response without using skynatapi
response = ...
response = response.json()
# Get the id, name, and time account information
obs_id = response['obs']['id']
obs_name = response['obs']['name']
obs_ta = response['obs']['timeAccountId']
print(type(obs)) # output: <class 'Dict'># Repsone using skynetapi
obs = ObservationRequest(token='1234').get(obs_id=567)
# Print the id, name, and time account information
print(obs.id, obs.name, obs.time_account_id)
print(type(obs)) # output: <class 'Serializable'>Snake Case
Last updated