jasonette-1

node v6.17.1
version: 10.0.0
endpointsharetweet
const Giphy = require( 'giphy' ) const c = console const getCats = () => { let giphy = new Giphy( 'dc6zaTOxFJmzC'); let cats = giphy.search("cats") c.log(cats) } // test code
^ | | getCats | Endpoint | | | v
// URL exports.endpoint = function(request, response) { let cats = getCats() response.end(` { "$jason": { "head": { "title": "Josefine" }, "body": { "sections": [{ "items": [ {"type": "label", "text": "mao"} ] }] } } } `); } // "miau"
Loading…

no comments

    sign in to comment