Created
October 9, 2017 10:20
-
-
Save jancurn/ad525425dd2f93a002586faf1dc21842 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Apify = require('apify'); | |
Apify.main(async () => { | |
// Get input of your act and print it | |
const input = await Apify.getValue('INPUT'); | |
console.log('My input:'); | |
console.dir(input); | |
// Save the output | |
const output = { | |
message: "Hello world!" | |
}; | |
await Apify.setValue('OUTPUT', output); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment