Box content picker for users files

新規投稿

コメント

5件のコメント

  • mschwartz

    Hi there - the best option would be to use the Box Content Picker (currently in beta), which is part of the Box UI Kit. This will allow you to authenticate a user using OAuth 2.0 and allow them to access their files using pre-built UI from Box. The Box UI Kit component is fully integrated with our APIs, so implementation should be simple! 

    0
    コメントアクション Permalink
  • irishbacon

    Thanks for the reply. Yeah I was planning on using the Box Content Picker, but how do I "link" it to a users account instead of my Box App? In other words how do I go about getting the access token for the user insetead of my (dev) token?  

    0
    コメントアクション Permalink
  • Priyajeet

    You will have to take a look at https://developer.box.com/docs/authentication for a brief overview and https://developer.box.com/v2.0/reference#token for the API to get tokens

    followed by https://developer.box.com/docs/box-content-picker#section-authentication for content picker scopes.

     

    As a very simple, rough, not-production-ready and only for quick demo purposes you can look at https://github.com/box/box-ui-elements-demo/blob/master/src/Login.js which uses the standard OAuth approach (the other being JWT) for managed users.

    0
    コメントアクション Permalink
  • irishbacon

    Sorry for the delay, I had given up hope on a response.. 

    I appreciate the response. I will take a look. 

    I do have a process which has the following. 

    User clicks button to sign in to box. 

        - They are redirected to box (https://www.dropbox.com/1/oauth2/authorize?client_id=[my-app])

        -  The code is provided in the redirect (back to my site) after the user logs in and 'accepts'. 
        - I send the code off for an access token request. 

        - Once I get the access token I can create a new instance of dropbox. 

    However, that instance is for the content in MY application (assuming because of "client_id=[my-app]" in oauth request).

    My goal is to have my site access the users content after they allow "my-app" to access it.

    I still don't see anything in the content picker for that. 

     

    Anyways, thanks again for the response and I'll take another look in case I missed something. 

     

    -Kyle

     

    0
    コメントアクション Permalink
  • tonyjin

    Hey Kyle, your comment refers to Dropbox several times and this is the developer forum for Box, a different company 🙂

     

    Are you using our content picker from this site (https://developer.box.com/docs/box-content-picker), which is the one we offer, or the one for selecting files from Dropbox?

    0
    コメントアクション Permalink

サインインしてコメントを残してください。