Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

box api - Box cli or curl for automated upload of files

I am planning to use box cli or curl for uploading files to box. I am unable to understand the exact steps required. For example, one of my requirements is not to redirect the user to box for interactive logon.

I understand, I have to create a custom box app for this purpose. I did so and created a custom box app with server side jwt authentication and with 'App Access Only' setting.

curl -i -X POST "https://api.box.com/2.0/folders" ^
     -H "Authorization: Bearer <my developer token>" ^
     -H "Content-Type: application/json" ^
     -d "{"name": "New Folder", "parent": {"id": "0"}}"

I get error

"status":403,"code":"access_denied_insufficient_permissions"

I don't understand enough about box and would like to know how to proceed in this matter. Any references will be really helpful

Thanks

question from:https://stackoverflow.com/questions/65917490/box-cli-or-curl-for-automated-upload-of-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...