# VimeoRuby 0.2.0 Welcome to VimeoRuby! ## Development Philosophy/Mindset The mindset of this project at this stage of development is to: 1. Be simple - Write boring code, resist pulling in additional gems as much as possible, and don't worry about edge cases or handling errors all that much right now. 2. Try to be as object-oriented as possible. I'm not an OO expert and you don't have to be either but let's try to improve our OO skills. 3. Have fun. Who wants another job? Not me so let's keep it light and make something cool! ## Installation Install the gem and add to the application's Gemfile by executing: $ bundle add vimeo_ruby If bundler is not being used to manage dependencies, install the gem by executing: $ gem install vimeo_ruby ## Usage ### Configure Credentials First, make sure you have a Vimeo account and have access to the following credentials from your Vimeo [My Apps dashboard](https://developer.vimeo.com/apps): `access_token`, `client_identifier`, and `client_secret` Once you have access to these, assign them to the following environment variables accordingly: ```ruby VIMEO_ACCESS_TOKEN= VIMEO_CLIENT_IDENTIFIER= VIMEO_CLIENT_SECRET=) # Makes http request to the Vimeo API #=> #) # Makes http request to the Vimeo API #=> # [:additional_info, :available_for_hire, :available_for_hire?, :base_uri, :bio, :can_work_remotely, :can_work_remotely?, :location, :profile_link, :uploaded_videos, :vimeo_id] ``` We can then take the `vimeo_user` that we currently have stored and retrieve a collection of all of the users uploaded videos with the following: ```ruby uploaded_video_collection = vimeo_user.uploaded_videos # Makes http request to the Vimeo API # => # [#) #=> #) # Makes http request to the Vimeo API #=> #