Sha256: 8e6ae1c8874a647b415011bb1218a48f3b7bb9815ecbc068eb1df8b932c6be50
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
require "pry" 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: options[:url], encoding_params: { title: options[:title], description: 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.2.2 | lib/vzaar/request/link_upload.rb |