01-20-2016, 04:49 PM
Thank you!
I got the example working, but it seems I gave the wrong request, the request should have been: 'get_current_account'
EXAMPLE CODE FROM DROPBOX
The body needs to be "NULL" I assume?
When I modify the example code I get the error.
I read here how to change the body to NULL but none of the methods work:
http://stackoverflow.com/questions/2112 ... ll-in-json
RETURNS (from dropbox API)
What is the correct the syntax?
I got the example working, but it seems I gave the wrong request, the request should have been: 'get_current_account'
EXAMPLE CODE FROM DROPBOX
POST /2/users/get_current_account
Host: https://api.dropboxapi.com
User-Agent: api-explorer-client
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
nullThe body needs to be "NULL" I assume?
When I modify the example code I get the error.
Error in call to API function "users/get_current_account": request body: expected null, got valueI read here how to change the body to NULL but none of the methods work:
http://stackoverflow.com/questions/2112 ... ll-in-json
RETURNS (from dropbox API)
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"name": {
"given_name": "Franz",
"surname": "Ferdinand",
"familiar_name": "Franz",
"display_name": "Franz Ferdinand (Personal)"
},
"email": "franz@gmail.com",
"locale": "en",
"referral_link": "https://db.tt/ZITNuhtI",
"is_paired": false,
"account_type": {
".tag": "basic"
},
"country": "US"
}What is the correct the syntax?
