Skip to content

Instantly share code, notes, and snippets.

@connor
Created May 28, 2012 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connor/2817490 to your computer and use it in GitHub Desktop.
Save connor/2817490 to your computer and use it in GitHub Desktop.
search method implementation
var request = require('request')
exports.search = function( query, callback ) {
request("http://domai.nr/api/json/search?q=" + query, function(err, response, body) {
callback( JSON.parse(body) )
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment