Answer the question
In order to leave comments, you need to log in
Dropbox API and Delphi, how to login?
Dropbox API and Delphi, how to login?
I'm trying to log in, and I get this crap in the server response: "{"error": "Unauthorized"}"
Here is the code:
HTTP.Protocol:='1.1';
HTTP.UserAgent:='OfficialDropboxJavaSDK/1.2.1';
HTTP.Headers.Insert(0,'Connection: keep-alive');
HTTP.Headers.Insert(0,'Authorization: OAuth oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="gprx59vzz7xr70p", oauth_signature="ddb24kqsq69p7yd"');
if HTTP.HTTPMethod('GET','https://api.dropbox.com/1/token?email='+login+'&password='+pass+'&locale=en') then
begin
Scr.LoadFromStream(HTTP.Document);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question