Dropbox API OAuth 2 with WinHttp -


so trying authorize myself using winhttp api , able connect fine when winhttpsendrequest 400 error , telling me not passing client_id.

this full request

winhttpsendrequest( hrequestauth,winhttp_no_additional_headers,0,authuserparams,strlen(authuserparams),strlen(authuserparams),0);

where authuserparams

"{\"response_type\":\"code\",\"client_id\":\"k6saup8e89guy8d\",\"state\":\"bkiknxpekcfqc6r\",\"force_reapprove\":false,\"disable_signup\":false}"

am not supposed send data? or go authorization header

the /oauth2/authorize endpoint web endpoint, not api endpoint, wouldn't submitting https request directly. instead, should send user there in browser.

for example, using sample values, url should like:

https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=k6saup8e89guy8d&state=bkiknxpekcfqc6r&force_reapprove=false&disable_signup=false


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -