Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noblesamurai/authlabs-api
A wrapper around node-al-papi Authority Labs API. For now just gives you a function to make requests with.
https://github.com/noblesamurai/authlabs-api
Last synced: about 1 month ago
JSON representation
A wrapper around node-al-papi Authority Labs API. For now just gives you a function to make requests with.
- Host: GitHub
- URL: https://github.com/noblesamurai/authlabs-api
- Owner: noblesamurai
- Created: 2014-10-29T23:48:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-30T04:01:04.000Z (about 10 years ago)
- Last Synced: 2024-10-12T05:15:58.004Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
al-api
=====A wrapper around node-al-papi.
For now just gives you a function to make requests with.
# Usage
```javascript// Instantiate it with your api Key and an optional baseUrlOverride (for testing)
var al = require('../al')({
apiKey: 'testApiKey'
});var params = {
keyword: 'blah',
searchEngine: 'bing',
locale: 'en-au',
includeAdultContent: false,
instant: true,
callbackUrl: 'http://mycallbackurl.org?blah=yeah'
};al(params, function(err, params) {
// err is null if all is OK
// params is the params you passed in above. This is just so your callback
// doesn't have to be closed over the params passed in if you want to access
// the params in it.
});```