Skip to content

tvongaza/dropbox-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages