Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 1.54 KB

README.md

File metadata and controls

53 lines (50 loc) · 1.54 KB

Loklak API

Build Status Code Climate Dependency Status

Node.js wrapper for loklak.org API - distributed tweet search server

Install

npm install --save loklak

Using

var loklak = require('loklak');

Status

loklak.status(function (data) {
  console.log(data);
});

Hello

loklak.hello(function (data) {
  console.log(data);
});

Peers

loklak.peers(function (data) {
  console.log(data);
});

Geocode

loklak.geocode(['Votkinsk'], function (data) { console.log(data); })

Users

loklak.user({name: 'sevazhidkov', followers: 20, following: 20}, function (data) { console.log(data); })

Search

loklak.search({q: 'Code-in'}, function (data) { console.log(data); })

Aggregations

Loklak.aggregations({q: 'fossasia', since: '2016-01-01', fields: [hashtags,mentions]}, function (data) { console.log(data); })

Contact

Send me a message in Telegram: @sevazhidkov. or @sudheesh001

Or in Twitter: @sevazhidkov. @sudheesh001