Hi
Hi
I'm looking a example for use the new DROPBOX Api V2 in Seattle
I'm updating Delphi example RESTDemos.dpr
Any rows of source , get_current_account call :
procedure DropBox_Info_Account(sToken:String);
var
sQuota,sNormal:String;
begin
ResetRESTComponentsToDefaults;
DP_RESTClient.BaseURL := sEdt_DropBox_BaseURL;
DP_RESTClient.Authenticator := DP_OAuth2_Dropbox;
DP_RESTClient.ContentType := 'application/json';
..
...
.
DP_RESTRequest.Execute;
...
don't work
Error in call to API function "users/get_current_account": Bad HTTP "Content-Type" header: "application/json, application/x-www-form-urlencoded". Expecting one of "application/json", "application/json; charset=utf-8", "text/plain; charset=dropbox-cors-hack".
Any hint ?
I'm looking a example for use the new DROPBOX Api V2 in Seattle
I'm updating Delphi example RESTDemos.dpr
Any rows of source , get_current_account call :
procedure DropBox_Info_Account(sToken:String);
var
sQuota,sNormal:String;
begin
ResetRESTComponentsToDefaults;
DP_RESTClient.BaseURL := sEdt_DropBox_BaseURL;
DP_RESTClient.Authenticator := DP_OAuth2_Dropbox;
DP_RESTClient.ContentType := 'application/json';
..
...
.
DP_RESTRequest.Execute;
...
don't work
Error in call to API function "users/get_current_account": Bad HTTP "Content-Type" header: "application/json, application/x-www-form-urlencoded". Expecting one of "application/json", "application/json; charset=utf-8", "text/plain; charset=dropbox-cors-hack".
Any hint ?
application/x-www-form-urlencoded is because it is a POST. Maybe it's being added automatically? Have to override that.
ReplyDeleteNew problem with Dropbox api and Rest Delphi component
ReplyDeleteforums.embarcadero.com - Embarcadero Discussion Forums: Dropbox API V2 - Error in json ...