Greek In Tech API examples

endpointsharetweet
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 https://runkit.io/tsevdos/greek-in-tech-api-example/branches/master } 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