Greek In Tech API examples

node v6.14.2
version: 4.0.0
Testing the #all method of greek-in-tech npm package.
Get all entries example
const GreekInTech = require("greek-in-tech"); exports.endpoint = function(req, res) { res.writeHead(200, {"Content-Type": "application/json"}); res.end(JSON.stringify(GreekInTech.all)); // View as an API response on } console.log(GreekInTech.all); // Or the below console log
Get random entry
const rendomEntry = GreekInTech.random(); console.log(rendomEntry);
Get specific entry
const daemonEntry = GreekInTech.getEntry(1); console.log(daemonEntry);

no comments

    sign in to comment