Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Wistia API Gem
DEPRECATED
==============
This gem is no longer actively supported or maintained.
The best course of action is to manage your own HTTP calls to Wistia rather than rely on our client library.

## Wistia API Gem

Ruby wrapper for the [Wistia Data API](http://wistia.com/doc/data-api).

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.3
0.2.4
1 change: 1 addition & 0 deletions lib/wistia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'wistia/config'
require 'wistia/base'
require 'wistia/media'
require 'wistia/medias/caption'
require 'wistia/project'
require 'wistia/projects/sharing'
require 'wistia/stats'
18 changes: 18 additions & 0 deletions lib/wistia/medias/caption.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module Wistia
module Medias
class Caption < Wistia::Base
self.site = "#{Wistia::API_BASE_URL}medias/:media_hashed_id"
self.collection_name = 'captions'

def self.find_by_media_id media_hashed_id
url = "#{Wistia::API_BASE_URL}medias/#{media_hashed_id}/captions.json"
find :all, :from => url
end

def to_json(options = {})
self.attributes.to_json(options)
end

end
end
end
Loading