1 Getting started - agilie/vimeo-api-gem GitHub Wiki
Installation
Add this line to your application's Gemfile:
gem 'vimeo_api_client', git: 'https://github.com/agilie/vimeo-api-gem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vimeo_api_client
Configuration
API Access
Before you start making the requests to Vimeo API provide the token using the configuration wrapping.
Vimeo.config do |config|
token = 'YOUR_PERSONAL_ACCESS_TOKEN'
end
For now the gem does not include OAuth2 authentication. However, you can easily implement OAuth2 flow by means of OAuth2 gem.
Alternatively, you can use your own token. You can generate it from your application page. Remember to add appropriate scopes to fit your business logic objectives.
Logging
By default Vimeo API client uses standard Logger.new(STDOUT) logger.
However you can override it with any other logger you want, i.e
Vimeo.logger = Logging.logger(STDOUT)