Jesus / dropbox_api

Ruby client library for Dropbox API v2
MIT License
171 stars 113 forks source link

access_token should be an OAuth2::AccessToken #103

Closed fabiancarlos closed 6 months ago

fabiancarlos commented 6 months ago

When trying to client = DropboxApi::Client.new(access_token: "xxxx") just not working, having response raise ArgumentError, "access_token should be an OAuth2::AccessToken"

fabiancarlos commented 6 months ago

Downgrade the lib, and trying to make it working... but now i have DropboxApi::Errors::HttpError Exception: HTTP 401: {"error_summary": "missing_scope/", "error": {".tag": "missing_scope", "required_scope": "files.content.write"}}

fabiancarlos commented 6 months ago

well... i did make it working, setting the permissions on Dropbox in Dropbox Dev . Opening the App > Permissions, files write and read.

But the current version that is working only passing the token is '0.1.19', others, need to be a valid Oauth2 object... dont know why. Because i wanted to save this to not process everytime.