ogpaas
v1.0.1
Published
A module for querying the api.ogpaas.com service to retrieve OGP/Twitter Card metadata about a URL.
Downloads
2
Readme
OGPaaS
A module for querying the api.ogpaas.com service to retrieve OGP/Twitter Card metadata about a URL.
Install
To install the module, just use standard NPM install methods:
npm install ogpaasUsage
To use the ogpaas module, require it into your application. Initialize it by passing your API key. You can sign up for an API key at OGPaaS.com.
const ogpaas = require('ogpaas');
const ogp = ogpaas("your_key_here");
ogp("https://ogpaas.com", (err, data) => {
if (err) {
console.log("OMG! ERROR: ", err);
return false;
}
console.log(data);
});This would log the output to the command line (STDOUT).
If you have any questions, please contact me at don (at) donburks (dot) com.
