GET
Retrieves your details with command:
http GET https://apps.dataplicity.com/profile/ 'Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer'
curl --header "Content-Type: application/json" -H "Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer" --request GET https://apps.dataplicity.com/profile/
In response you will see something like the following:
{
"device_limit": null,
"email": "[email protected]",
"email_verified": true,
"has_usable_password": true,
"install_command": "curl https://www.dataplicity.com/1nst4all.py | sudo python",
"install_script_url": "https://www.dataplicity.com/1nst4all.py",
"install_token": "1nst4all",
"name": "John",
"paid_account": true,
"port_forwarding_ports": [
-1
],
"pro_account": true,
"search_capable": true,
"subscription_ended": false,
"team": "Dataplicity",
"tracking_enabled": true,
"uid": "1",
"verified_uid": "3x4mple3x4mple3x4mple3x4mple3x4mple3x4mple3x4mple3x4mple3x4mple"
}
PUT
Change your details. You are currently only permitted to modify name
.
http PUT https://apps.dataplicity.com/profile/ 'Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer' <<< '{ "name": "radoslav" }'
curl --header "Content-Type: application/json" -H "Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer" --request PUT --data '{ "name": "radoslav" }' https://apps.dataplicity.com/profile/
On success, you will receive a 200 (OK) with the same response as in the GET request but with the new updated detail name
.