Skip to content

Instantly share code, notes, and snippets.

@glynnbird
Created February 10, 2017 14:23
Show Gist options
  • Select an option

  • Save glynnbird/4f2290cb89c39e339e4ea0b98b19d059 to your computer and use it in GitHub Desktop.

Select an option

Save glynnbird/4f2290cb89c39e339e4ea0b98b19d059 to your computer and use it in GitHub Desktop.
var request = require('request-promise');
var main = function() {
var myAPIKey = process.env.MYAPIKEY;
var url = 'https://externalapi.service.com/v1/query?key=' + myAPIKey;
return request(url);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment