Accounts
Account data
Attribute | Value type | Description |
---|---|---|
uuid | str | Account UUID |
name | str | Account name |
timezone | str | Timezone |
country | str | Country code |
clock_format | str | '24' or '12' (am/pm) |
week_numbers | bool | Is the account using week numbers(mostly a UI thing) |
pref_language | str | The accounts default language |
** Endpoint: accounts/ **
GET https://api.smartplanapp.io/v2/accounts/
Returns the accounts you are allowed to fetch data from(usually just 1)
Example response:
response = {
'total_count': 1,
'results': [{
'uuid': '1234-1234-1234',
'name': 'MyAccount',
'timezone': 'Europe/Copenhagen',
'country': 'DK',
'clock_format': '24',
'week_numbers': True,
'pref_language': 'da'}
]
}
** Endpoint: accounts/UUID/ **
GET https://api.smartplanapp.io/v2/accounts/UUID/
Returns the data for the specified account;
Example response:
response = {
'results': {
'uuid': '1234-1234-1234',
'name': 'MyAccount',
'timezone': 'Europe/Copenhagen',
'country': 'DK',
'clock_format': '24',
'week_numbers': True,
'pref_language': 'da'
}
}