Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NOTE: This gem is getting depreciated. Please see http://github.com/RISCfuture/dropbox | Dropbox has announced their official API: http://blog.dropbox.com/?p=492 | This is a simple stop-gap Ruby API for DropBox.

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.rdoc

DropBox

DEPRECIATION WARNING: This gem is being depreciated for: github.com/RISCfuture/dropbox

NOTE: Dropbox has announced their official API. See more here: blog.dropbox.com/?p=492

A simple stop-gap Ruby API for DropBox.

INSTALL:

  • sudo gem install dropbox

USAGE:

d = DropBox.new("you@email.com","password!")      #login
d.list("/")                                       # show directory contents
d.create_directory("/testdirectory")              # create a remove directory
d.create("/local/path/to/file.txt","/testdirectory")    # upload a file to the directory
d.rename("/testdirectory/file.txt","file.txt")    # rename the file
d.destroy("file.txt")                             # remove the file
d.usage_stats
# => {:regular_used=>18.6, :shared_used=>670.2, :free=>1359.2, :used=>688.8, :percent=>34%, :total=>2048.0}

d2 = DropBox.new("you@email.com","password!", "optional_namespace") # all actions will happen in /optional_namespace
Something went wrong with that request. Please try again.