Authorization: "Bearer undefined"
Hi
Can't authorize with code which I got from https://account.box.com/api/oauth2/authorize?client_id=xxx&response_type=code - getting Authorization: "Bearer undefined"
With developer token all works fine.
I am using javascrip box sdk (box-javascript-sdk) to get root folder
var boxClient = new box.BasicBoxClient({ accessToken: accessToken }); boxClient.folders.get({ id: "0", params: {fields: "name,item_collection"} }) .then(function (folder) { var rootFolder = folder; var id = folder.id; }) .catch(function (err) { console.log(err); });
What am I doing wrong?
Thanks
-
正式なコメント
Hi there, i don't think you'd want to use the BasicClient as you do there. This document goes into much detail as to how to set up 3-legged OAuth 2.0.
https://github.com/box/box-node-sdk/blob/master/docs/authentication.md#traditional-3-legged-oauth2
コメントアクション
サインインしてコメントを残してください。
コメント
1件のコメント