1.0.1 • Published 7 years ago

ogpaas v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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 ogpaas

Usage

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.