How to use API with for simple operations
Hi,
I've played around and read through the developer docs, but am not sure what type of app/auth would be proper to perform simple operations using the API on our Box Enterprise Account.
I'm looking to do simple operations: creating folders, getting directory listings, etc. Is this possible with just a token? I tried using a Custom Application with just that and don't see anything appear, even with successful calls to the API, testing out on my personal Box.com account. I only need to create folders and get directory listings of what's in these folders, nothing else.
My end need is to configure these calls inside of our workflow/project management solution, which has limited options for running code, outside of creating a webhook and using an external server with custom code.
Can this be done via simple command-line to test using curl and later translated into a webcall without having to use oAuth2?
Thanks
-
I'm also new with the API and found your question because it is similar to my question. If you're operating from a command line, you may want to explore the FTP access capability which involves setting an 'External Password' in the your box.com account. The box.com documentation has a couple of examples using curl to make ftp connections to ftp.box.com.
If the box API can support custom SSO-incapable apps, I presume it would be through the 'External Password' path. Hopefully a more knowledgeable developer/contributor can help us out on this.
-
Good afternoon and ,
currently, you have two options:
- Go for BOX CLI
- Develop a little app / script.
If you want to integrate that in a workflow app then you only can go by the second option.
As tokens expire each hour you will need to manage the authentication piece. Quite simple nowadays with the different SDKs (with Java for example, you only have to load the configuration file and do the connection).
Thanks
Please sign in to leave a comment.
Comments
2 comments