class Zype::Videos
Read more at docs.zype.com/v1.0/reference#videos
@since 0.4.0
Public Instance Methods
add_zobjects(id:, zobject_ids:)
click to toggle source
Adds zobjects to video
@param id [String] the ID of the video @param zobject_ids [Array<String>] an array of zobject IDs @return [Hash] the video object
# File lib/zype/models/videos.rb, line 11 def add_zobjects(id:, zobject_ids:) client.execute(method: :put, path: "/videos/#{id}/add_zobjects", params: { zobject_id: zobject_ids }) end
download(id:)
click to toggle source
Returns the original source file for the video
@param id [String] the ID of the video @return [Hash] object containing a “url” key for the original source file
# File lib/zype/models/videos.rb, line 28 def download(id:) client.execute(method: :get, path: "/videos/#{id}/download") end
remove_zobjects(id:, zobject_ids:)
click to toggle source
Removes zobjects from video
@param id [String] the ID of the video @param zobject_ids [Array<String>] an array of zobject IDs @return [Hash] the video object
# File lib/zype/models/videos.rb, line 20 def remove_zobjects(id:, zobject_ids:) client.execute(method: :put, path: "/videos/#{id}/remove_zobjects", params: { zobject_id: zobject_ids }) end