tomafc330 / redvine

Simple Ruby wrapper for the totally unofficial and undocumented Vine API.

Home Page:https://rubygems.org/gems/redvine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redvine

A simple Ruby wrapper for the totally unofficial and undocumented Vine API. Everyone loves Vine these days, and this pretty much sums up why.

Very heavily inspired by Vino, and made possible by the super sleuthing documented on khakimov.com.

It pretty much goes without saying that this wasn't authorized by Vine or anyone who works at Vine, so don't blame me if you try to use it and Vine gets mad at you.

Thanks also to @kdonovan and @ruthgsp and @tommytcchan for adding and improving.

Installation

gem install redvine

Usage

require 'rubygems'
require 'redvine'

client = Redvine.new

# Connect to Vine with an email and password
client.connect(email: 'your@email.com', password: 'your_vine_password')

# Get your own timeline
client.timeline

# Find videos by tag
client.search('cats')
client.search('cats', :page => 2)

# Find user profiles by user ID 
client.user_profile('908082141764657152')

# Get liked Vines by a user's ID
client.user_likes('908082141764657152')

# Get a user's timeline by their user ID
client.user_timeline('908082141764657152')
client.user_timeline('908082141764657152', :page => 2)

# Get a user's followers/following by their user ID
client.followers('908082141764657152')
client.following('908082141764657152', :page => 2)

# Get popular and promoted videos
client.popular
client.popular(:page => 2)
client.promoted
client.promoted(:page => 2)

# Get a single video by the post ID
client.single_post('1015405623653113856')

# Get the trending vines
client.trending

Things To Do

  • Twitter authentication
  • Make it easier to access attributes of common objects (videos and users)
  • Include all of the discovered API endpoints

About

Simple Ruby wrapper for the totally unofficial and undocumented Vine API.

https://rubygems.org/gems/redvine

License:MIT License


Languages

Language:Ruby 100.0%