0.0.8 • Published 10 years ago

soclall v0.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

SoclAll

SoclAll API library for Node.js

Installation

npm install soclall

Go to SoclAll and register an application for free.

Usage

var SoclAll = require('soclall')
  , s = new SoclAll(app_id, secret_key);

console.log(s.getLoginUrl('facebook', 'http://yourdomain.com/callback'));

API

getLoginUrl(network, callback_url)
  • network -- string -- see networks
  • callback_url -- string
  • returns string login url

getUser(token, callback)
  • token -- string
  • callback -- function(err, user)
getFriends(token, callback)
  • token -- string -- token given by SoclAll
  • callback -- function(err, friends)
postStream(token, message, callback)
  • token -- string
  • message -- string
  • callback -- function(err)

sendMessage(token, message, friends, title, callback)
  • token -- string
  • message -- string
  • friends -- array -- list of friend's IDs
  • title -- string
  • callback -- function(err)

Networks

  • facebook
  • twitter
  • google
  • linkedin
  • live
  • plurk
  • tumblr
  • mailru
  • reddit
  • lastfm
  • vkontakte
  • disqus
  • wordpress
  • foursquare
  • github

Bugs and Issues

If you encounter any bugs or issues, feel free to open an issue at github.

Credits

SandKlock

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago