Skip to content

div/coub-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Coub::Api

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'coub', github: 'div/coub-api'

And then execute:

$ bundle

Usage

r = Coub.search 'stuff', sort_by: :date
coubs = r.coubs
=> [...]
users = r.users
=> [...]
pagination = r.pagination
=> {"page"=>1, "total_pages"=>11, "per_page"=>10}
c = coubs.first
=> {...}
embed = Coub.oembed c.permalink
=> {...}
embed.html
=> "<iframe src=\"http://coub.com/embed/12438d40\" allowfullscreen=\"true\" frameborder=\"0\" width=\"640\" height=\"359\"></iframe>"

About

Ruby wrapper around public part of coub.com API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages