Last active
September 25, 2019 19:15
-
-
Save auryn31/bb14760fd7bd76af07e6a57bf3172996 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 axios = require('axios').default; | |
module.exports.price = async event => { | |
var encoded_url = encodeURI("https://www.amazon.de/Raspberry-Pi-ARM-Cortex-A72-Bluetooth-Micro-HDMI/dp/B07TC2BK1X"); | |
const res = await axios.get(encoded_url); | |
return { | |
statusCode: res.status, | |
body: JSON.stringify({ | |
title: "PLACEHOLDER", | |
price: 0.0 | |
}) | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment