Last active
February 20, 2020 23:23
-
-
Save karakanb/8a95a042496f897b94e19ffd1f55d410 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
module.exports.producthunt = (event, context, callback) => { | |
var url = 'https://api.producthunt.com/v1/posts?access_token=my-api-token'; | |
helpers.get(url, output => { | |
callback(null, helpers.rawResponse(JSON.parse(output).posts)); | |
}, err => callback(null, helpers.failure(err.message))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment