A Ruby client for the Dropbox API V2.
Current state: First release, includes methods listed below:
In your Gemfile:
And then execute:
Or install it yourself as:
$ gem install dropbox_api_v2
folder_contents = .("/directory name", "dropbox_token", recursive: true) #the methods `json, body, cursor` are avaible for all calls folder_contents.json #returns response in the json form folder_contents.body #returns raw response folder_contents.cursor #returns cursor to be used in the future folder_contents = .("cursor_from_previous_call", "dropbox_token") contents_of_file = .("/path/file.txt", "dropbox_token") upload_file = .("/path/new_file.txt", "dropbox_token", "content_to_write_in_the_file") files_found = .("/", "dropbox_token", query: "file_name")
Bug reports and pull requests are welcome on GitHub at https://github.com/smurfik/dropbox_api_v2.
The gem is available as open source under the terms of the MIT License.