Sha256: cc389e07b935df8b97df3c02b8c5a1c3bea76c85769d093f7a757d818cc96c14
Contents?: true
Size: 970 Bytes
Versions: 6
Compression:
Stored size: 970 Bytes
Contents
module DropboxApi::Endpoints::Files class UploadSessionFinish < DropboxApi::Endpoints::ContentUpload Method = :post Path = "/2/files/upload_session/finish".freeze ResultType = DropboxApi::Metadata::File ErrorType = DropboxApi::Errors::UploadSessionFinishError include DropboxApi::Endpoints::OptionsValidator # Finish an upload session and save the uploaded data to the given file # path. # # A single request should not upload more than 150 MB of file contents. # # @param cursor [DropboxApi::Metadata::UploadSessionCursor] Contains the # upload session ID and the offset. # @param commit [DropboxApi::Metadata::CommitInfo] Contains the path and # other optional modifiers for the commit. add_endpoint :upload_session_finish do |cursor, commit, content = nil| perform_request({ :cursor => cursor.to_hash, :commit => commit.to_hash }, content) end end end
Version data entries
6 entries across 6 versions & 1 rubygems