0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client library for the Dropbox Api V2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0
>= 0

Runtime

>= 0
 Project Readme

DropboxApiV2

A Ruby client for the Dropbox API V2.

Current state: First release, includes methods listed below:

  • list_folder
  • list_folder_continue
  • download
  • upload
  • search

Installation

In your Gemfile:

gem 'dropbox_api_v2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dropbox_api_v2

Usage

folder_contents = DropboxApiV2.list_folder("/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 = DropboxApiV2.list_folder_continue("cursor_from_previous_call", "dropbox_token")
contents_of_file = DropboxApiV2.download("/path/file.txt", "dropbox_token")
upload_file = DropboxApiV2.upload("/path/new_file.txt", "dropbox_token", "content_to_write_in_the_file")
files_found = DropboxApiV2.search("/", "dropbox_token", query: "file_name")

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/smurfik/dropbox_api_v2.

License

The gem is available as open source under the terms of the MIT License.