Ruby wrapper for VMIX REST API
Add this line to your application's Gemfile:
gem 'vmix'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vmix
require "rubygems"
require "vmix"
Vmix.configure do |config|
# Endpoint = 'apis.vmixcore.com/apis'
config.endpoint = REST_API_URL
# You can choose HTTP Basic Authentication (:http_basic_auth)
# or Token Based Authentication (:token_auth)
config.authentication = YOUR_AUTHENTICATION_METHOD
# For read requests, only token is required for token-based authentication
config.token = YOUR_VMIX_API_TOKEN
# For read and write requests, HTTP Basic Authentication requires username and password
config.account_id = YOUR_ACCOUNT_ID
config.api_password = YOUR_API_PASSWORD
end
v = Vmix::Client.new(:method => :token, :token => 'your-vmix-api-token')
v.available_api_methods
response = v.getCollections
response = v.getMediaList(:start => 100, :alltime => 1)
This currently only implements the token api (not basic auth api) - ie. read only
- Implement basic auth api
- Write tests
- Improve documentation
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request