Complete unofficial Vine API for Node.js
npm install nodevine
npm install
First, we need to import this module and create a user with a Vine credential.
var Vine = require('nodevine');
var user = new Vine('E-Mail', 'Password');
We now have a Vine User, but we have not yet been authenticated. We need to do that before we make any API calls.
user.authenticate(function(err, res) {
// We can now make API calls
});
The list of available methods and endpoints is available here.
Simply call the method on the user
with two parameters:
- An object with the parameters you wish to pass in
- Callback function with two arguments: err (error) and res (response)
user.get_me({}, function(err, res) {
// res is our account
});
user.get_followers({user_id:'1255502149111492608'}, function(err, res) {
// res is the list of followers
});
Note, we are passing the user id in as a string and not as an integer because it is too big.
user.follow({user_id:'1255502149111492608'}, function(err, res) {
// we are now following the given vine user
});
user.get_trending_tags({}, function(err, res) {
// we have the trending tags
});
user.search_users({query:'bob'}, function(err, res) {
// We have our list of matches
});
I think you get the idea by now. Check out the list of available API calls.
MIT Licence