Last active
June 28, 2018 01:23
-
-
Save drwpow/5a72056b5e53f0f7660dd35476b3200e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IronWorker = require('iron_worker'); | |
const worker = new IronWorker.Client({ | |
token: process.env.IRON_TOKEN, | |
project_id: process.env.IRON_PROJECT_ID, | |
}); | |
const payload = { first: 'Hello', second: 'World' }; | |
const options = { priority: 1 }; | |
worker.tasksCreate('HelloWorld', payload, options, function(error, body) {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment