Sha256: 5201704faa404e9a124262a850c15792a30fef72199cd024e5c8d870babdd273
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
module Vzaar module Request class LinkUpload < Base endpoint "/api/upload/link" authenticated true http_verb :post resource "LinkUpload" def xml_body <<-XML <?xml version="1.0" encoding="UTF-8"?>#{hash_to_xml(json_body)} XML end def json_body { "vzaar-api" => { link_upload: { key: options[:key], guid: options[:guid], url: sanitize_str(options[:url]), encoding_params: { title: sanitize_str(options[:title]), description: sanitize_str(options[:description]), size_id: options[:profile], bitrate: options[:bitrate], width: options[:width], replace_id: options[:replace_id], transcoding: options[:transcoding] } } } } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vzaar-1.5.1 | lib/vzaar/request/link_upload.rb |