Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
jasonette-1
node v6.17.1
version:
10.0.0
endpoint
share
tweet
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