Using API to Get Download URL
I am looking to use a download URL to pass to our own company's API to upload a file to our platform. At the moment, what I thought would be the best option would be to create a share link for all files we wish to upload and pass the 'download_url' returned to our API. I am using this as the passed body parameters but it still seems like there are some issues with the anonymous HTTP request being made by our API (Python):
"shared_link": {
"access": "open",
"password": None,
"unshared_at": None,
"permissions": {
"can_download": True
}
}
I believe the issue is related to the fact that when I paste the returned download url into a browser I receive the error: "This user is not allowed to use direct links." But I didn't think this would be an issue given the settings above and my account settings. Also, using curl against this download URL returns a 404 which again is confusing. Any help is appreciated, thanks!
-
正式なコメント
Hey Oscar!
What type of application did you set up in the Box Developer Console? Would it be possible for you to share some code examples and your client id?
Thanks,
Alex, Box Developer Advocate
コメントアクション
サインインしてコメントを残してください。
コメント
2件のコメント