Sha256: d22072c60349a4b84805cf31ec47ac4bd9a6a81dd14aec1b8ebc168b1f3d0970
Contents?: true
Size: 789 Bytes
Versions: 2
Compression:
Stored size: 789 Bytes
Contents
module DropboxApi::Endpoints::Files class CreateFileRequest < DropboxApi::Endpoints::Rpc Method = :post Path = "/2/file_requests/create".freeze ResultType = DropboxApi::Metadata::FileRequest ErrorType = DropboxApi::Errors::CreateFileRequestError # Create a file request for a given path. # # @param title [String] The title of the file request. Must not be empty. # @param destination [String] The path of the folder in the Dropbox where # uploaded files will be sent. For apps with the app folder permission, # this will be relative to the app folder. add_endpoint :create_file_request do |title, destination| perform_request({ :title => title, :destination => destination }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dropbox_api-0.1.18 | lib/dropbox_api/endpoints/file_requests/create_file_request.rb |
dropbox_api-0.1.17 | lib/dropbox_api/endpoints/file_requests/create_file_request.rb |