Looks like this question being raised before. i did try postman and able to pass the API message to box api and return sucessfully.
i am integrate MT4/MQL4 language with Dropbox. The code is like this:
int res;
string signal,out_header,in_header,URL,in_signal;
char body[],result[];
URL = "https://api.dropboxapi.com/2/files/list_folder";
out_header = "Authorization: Bearer ,<token>\r\nContent-Type: application/json";
signal = "{\"path\": \"/Home\"}" ;
StringToCharArray (signal,body,0,-1,CP_ACP);
res = WebRequest("POST",URL,out_header,0,body,result,in_header);
in_signal = CharArrayToString(result,0,-1,CP_ACP);
I do include "{\"path\": \"/Home\"}" in the body and tried couple times and still facing the error: Error in call to API function "files/list_folder": request body: could not decode input as JSON
Plesae suggest what might be wrong.
thx.