Skip to content

Instantly share code, notes, and snippets.

@harrietty
Last active July 23, 2017 09:03
Show Gist options
  • Select an option

  • Save harrietty/34504b7d748a517a59fddf42230002cf to your computer and use it in GitHub Desktop.

Select an option

Save harrietty/34504b7d748a517a59fddf42230002cf to your computer and use it in GitHub Desktop.
.then(() => {
if (newJobs.length) {
var nexmo = new Nexmo({
apiKey: NEXMO_API_KEY,
apiSecret: NEXMO_API_SECRET
});
nexmo.message.sendSms('Donkey Jobs Finder', MY_PHONE_NUMBER, 'Hello, we found a new donkey job!');
}
callback(null, { jobs: newJobs });
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment