https://github.com/jamesjara/shodan-api-strongloop-connector
Strongloop connector for shodan APi
https://github.com/jamesjara/shodan-api-strongloop-connector
shodan shodan-api strongloop strongloop-connector strongly-typed
Last synced: 12 days ago
JSON representation
Strongloop connector for shodan APi
- Host: GitHub
- URL: https://github.com/jamesjara/shodan-api-strongloop-connector
- Owner: jamesjara
- Created: 2017-01-25T20:14:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T23:23:16.000Z (about 8 years ago)
- Last Synced: 2025-03-16T08:16:25.291Z (about 1 month ago)
- Topics: shodan, shodan-api, strongloop, strongloop-connector, strongly-typed
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shodan-api-strongloop-connector
Strongloop connector for shodan APi[Shodan](http://www.shodan.io/) connector for [LoopBack](http://www.loopback.io)
## Customizing Shodan configuration for examples
To run the example you will need to provide your tokens
### Installation
In your LoopBack project:
$ npm install loopback-connector-shodan## Using the Connector
To use the connector, define the datasource using the connector in your `datasources.json` file:
"twilio": {
"name": "shodan",
"connector": "loopback-connector-shodan",
"token": "YOUR_TOKEN"
}
Next, attach the created datasource to a model in the `model-config.json` file:"Explore": {
"dataSource": "shodan",
"public": true
}
Now, using the created model, you can make calls using the `call` method of the model:
Shodan.query(options, callback);
## Running the Example
To run the example in the `/example/example.js` directory, you must set the following values in the file:var SID = 'YXXXNT_SID';
var QUERY = 'YOURXXXOKEN';Next, from the from the `/loopback-connector-shodan/` directory, install the `loopback` module using the following command:
$ npm install loopback
Finally, run the example app using the following command from the `/loopback-connector-shodan/` directory:$ node ./example/example.js
### Version
0.1.0License
----