Forum Discussion

oleg22's avatar
oleg22
New member | Level 2
6 years ago

Eror 409 Conflict on auth request on Java code

Hello i have such problem with request for getting OAuth 2.0 token with part of documentation"token from oauth 1.0
Have some code with request

curl -X POST https://api.dropboxapi.com/2/auth/token/from_oauth1 \
    --header "Authorization: Basic <my basic token>" \
    --header "Content-Type: application/json" \
    --data "{\"oauth1_token\": \"<my token>\",\"oauth1_token_secret\": \"<my token secret\"}"

 And Java request as 

"{\"oauth1_token\": \""+app_token+"\",\"oauth1_token_secret\": \""+token_secret+"\"}";

where app_token and token_secret is Static Strings with app token and token secret.
And have eror 409 Conflict
I look my code for spaces on token or secret or request but dont see it.