Node js wrapper for the loklak API.
JavaScript Makefile
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 11 commits ahead of sudheesh001:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
Makefile
README.md
index.js
package.json

README.md

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