I am trying to download a file from my IBM Cloud Connections server, after checking out the documentation found on their docs. I am using a URL I got in the JSON reply from getting my own Activities Stream (also using oAuth). the URL I am getting is in the form of
https://apps.collabservnext.com/files/form/api/library/{library-id}/document/{document-id}/media/{filename}
I replaced the form
{auth} placeholder with oauth
, according to the api docs. I keep getting 403 - FORBIDDEN in my replies. My request is being sent with the proper "Authorization" header, containing the right Bearer auth token (which works well in the Activities Stream requests, so it is still valid)
I tried replacing it with basic
, and it works fine, so the URL itself is valid (The different ids).
Do I need to set specific permissions on my oAuth application, to be able to download files? How can I do that?
I also created the application as an "Internal App". I suspect the app will not be available outside of my company's cloud. Where can I create such an app that other admins will be able to use in their clouds, so that my javascript application be able to connect to their clouds?