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:
Comments
Post a Comment