0.0.0 • Published 10 years ago

fakku v0.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

Installation

npm i fakku.js

Features

  • Cache retry
  • Promise based

TODO

  • Implement better convenience methods for getting content (meta, reading, and related).

Usage

var client = require('fakku').createClient();
client.heartbeat();

// 1. find all items tagged "ahegao"
// grab next page
// get the items it represents
// open up a reading endpoint
var client = new APIClient();
client.tagged('ahegao') // 1.
.page() // 2.
.items() // 3.
.then(function (results) {
  return client.read(results[i].content_url, 'english'); // 4.
}).then(function (root) {
  console.log('READING DATA', root);
}, function (reason) {
  console.log('ERROR', reason);
});