Skip to content

Instantly share code, notes, and snippets.

@pbzona
Created April 30, 2018 21:55
Show Gist options
  • Save pbzona/35179e69587f91d41902eb77d64e2375 to your computer and use it in GitHub Desktop.
Save pbzona/35179e69587f91d41902eb77d64e2375 to your computer and use it in GitHub Desktop.
Serverless Weather pt 2
exports.handler = (event, context, callback) => {
// Construct the URL to make weather forecast requests
const weatherURL = `https://api.darksky.net/forecast/${API_KEY}/${COORDS}?exclude=currently,minutely,hourly,flags`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment