Z
Z
zhenyakucher2016-05-14 12:41:44
Delphi
zhenyakucher, 2016-05-14 12:41:44

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);

Who will help solve the problem?
Ready to pay for the service.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kalapanga, 2016-05-14
@zhenyakucher

Have a look here: Delphi: Dropbox OAuth 2.0 Authorization by ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question