quotefm

a node implementation of the Quote.fm API

var Quotefm = require('quotefm').Quotefm;
 
var quotefm = new Quotefm();
 
quotefm.user("Gottox", function(erruser) {
    if(err)
        return console.log("Error occured " + err);
    console.log(user)
    quotefm.recommendationByUser(user.id, {page: 0}, function(errobj) {
        if(err)
            return console.log("Error occured " + err);
        console.log(obj)
    })
});

Instantiate a new object with:

var Quotefm = require('quotefm').Quotefm;
 
var quotefm = new Quotefm();

Afterwards you can use the following method calls:

Queries /recommendation/get, see http://quote.fm/labs/documentation/recommendation/get

  • id: ID to query.
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /recommendation/listByArticle, see http://quote.fm/labs/documentation/recommendation/listByArticle

  • id: ID or URL to query, determinated by type (typeof id === 'string' -> url; typeof id === 'number' -> id)
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /recommendation/listByArticle, see http://quote.fm/labs/documentation/recommendation/listByArticle

  • id: ID to query.
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /article/get, see http://quote.fm/labs/documentation/article/get

  • id: ID to query.
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /article/listByPage, see http://quote.fm/labs/documentation/article/listByPage

  • id: ID to query.
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /article/listByCategories, see http://quote.fm/labs/documentation/article/listByCategories

  • id: ID to query.
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /page/get, see http://quote.fm/labs/documentation/page/get

  • id: ID or Domain to query, determinated by type (typeof id === 'string' -> domain; typeof id === 'number' -> id)
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /user/get, see http://quote.fm/labs/documentation/user/get

  • id: ID or Username to query, determinated by type (typeof id === 'string' -> username; typeof id === 'number' -> id)
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /user/listFollowers, see http://quote.fm/labs/documentation/user/listFollowers

  • id: ID or Username to query, determinated by type (typeof id === 'string' -> username; typeof id === 'number' -> id)
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /user/listFollowings, see http://quote.fm/labs/documentation/user/listFollowings

  • id: ID or Username to query, determinated by type (typeof id === 'string' -> username; typeof id === 'number' -> id)
  • options: an object containing key value pairs for building the parameter list. optional
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /page/get, see http://quote.fm/labs/documentation/page/get

  • size: how many entries per page.
  • page: which page
  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error

Queries /category/list, see http://quote.fm/labs/documentation/category/list

  • cb: a callback. will be called on result.
    function(err, obj)
    • err: defined when an error occured, otherwise undefined
    • obj: the actual resultobject, undefined on error