begin29
3/14/2016 - 2:31 PM

share file from dropbox

share file from dropbox

require 'dropbox_sdk'

APP_KEY = 'some key'

APP_SECRET = 'some secret key'

client = DropboxClient.new(APP_SECRET)

client.media('path_file') # if file is placed in root then client.media('some_name.jpg')