Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dropbox_api_v2

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox_api_v2

  • 0.1.7
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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.

FAQs

Package last updated on 14 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc