Project

vimeorb

0.0
No release in over a year
A Ruby library for interacting with the Vimeo API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

VimeoRB

This library is a work in progress

VimeoRB is a Ruby library for interacting with the Vimeo v3.4 API.

Installation

Add this line to your application's Gemfile:

gem 'vimeorb'

Usage

Set Client Details

Firstly you'll need to set an Access Token. An Access Token will be an OAuth2 token generated after authentication.

@client = Vimeo::Client.new(access_token: "")

Videos

# Retrieve a Video's details
@client.videos.retrieve(id: "abc123")

# Edit a Video
params = {title: "New Title"}
@client.videos.edit(id: "abc123", params)

# Delete a Video
@client.videos.delete(id: "abc123")

# Upload a Video using resumable uploads
# This splits the file into 128MB chunks while uploading
@client.videos.upload(file: File.new("my_video.mp4"))

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/deanpcmad/vimeorb.

License

The gem is available as open source under the terms of the MIT License.