Sha256: 3d10ea95a57d430bfcb6c7624bcae5bef6e5a941645d79e74838f368ab354d7e
Contents?: true
Size: 961 Bytes
Versions: 5
Compression:
Stored size: 961 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: CGI.escape(options.fetch(: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
5 entries across 5 versions & 1 rubygems