新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

Help using APIs from cmd line

新規投稿

コメント

7件のコメント

  • LoCortes

    Hello jjdepaul,

     

    The client secret is not what you have to use here, you have to use a valid token. So, using the developer token was the right thing to do.

     

    Have you authorized your application in your Admin Console >> Enterprise Settings >> Apps ?

     

    Probably is due to that it is not working.

     

    By the way, I would recommend not to use curl but some tool like Postmann (recomended by BOX) or the one I use: "DHC by restlet" chrome plugin. It is quite useful because it is very visual and allows to save executions:

     

    DHCbyRestlet.png

    Hope this helps.

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

    I'm sorry to say that I don't konw what an Administrative Console is or where the Enterprise settings are.   What is a typical url there.

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

    Hello there,

    I think then you should start for the basics before trying to develop something 🙂 as it will be easier.

     

    If you have a developer account or an enterprise account you have to do the following 4 clics:

     

    adminConsole.png

     

    Then,  go to custom applications and copy there the API KEY of the application you are creating.

     

    If not, your application is basically connecting to nowhere.

     

    Thanks

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

    I do not have that option available, and hence my confusion.  I've read all the basic docs and followed most of the documents as best as I could, but some of the features described in the documentation are not available on my screens.

     

    Must be IBM Enterprise settings...

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

    I have a Developer Console available, but not an Admin Console.

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

    You don't need enterprise settings to interact with an API. Another option is going to a page and getting an authorization code manually, then using that to get your tokens. Those tokens can then be used to interact with the API.

     

    Here's a good step-by-step answer I personally found very useful:

     

    https://community.box.com/t5/Developer-Forum/Re-How-I-can-connect-to-OAuth2-from-server-side-script-without/m-p/1980#U1980

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

    Hello jjdepaul,

     

    that's strange 🙂 the screenshoots are from my personal free box account activated as developer so you should have that also... 

     

    Thanks

     

    0
    コメントアクション Permalink

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