You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like I may need to look into this. We already have calls (get_file and put_file) that use the api-content subdomain but list used to work against the api subdomain.
I have not done a lot with this lib for a while now so need to get some old apps dusted off before i can test. Happy to incorporate any patches though, in case you have something already.
I just noticed this too, but I think the error is not the sub-domain. The /files GET API is used to actually get file content, not directory listing. To do this, you should use the /metadata GET API (to api.dropbox.com).
I changed the list sub routine to just use /metadata instead of /files, and then it worked fine.
The reason for the 401 Not Found that you get is because /files need the path to point to a file, not a directory.
When running the basic tool and using the Linux Magazine (August 2011) software, I am unable to get list() working. I believe this maybe due to the Dropbox API needing api-content.dropbox.com as opposed to api.dropbox.com.
https://www.dropbox.com/developers/reference/api#files-GET
https://api-content.dropbox.com/1/files//
I get a 404 Not Found regardless of what directory/location I attempt to look at.
With debug on the Net::Dropbox::API the _talk URL is:
https://api.dropbox.com/1/files/dropbox/home/Photos?oauth_cons....
Is there a way to control the "api" aspect of the subdomain? Or does the API need to be enhanced.
Note: I am able to get the account_info() as this uses the api.drop... subdomain.
Thanks Doug.
The text was updated successfully, but these errors were encountered: