Skip to content

Instantly share code, notes, and snippets.

@auryn31
Last active September 25, 2019 19:15
Show Gist options
  • Save auryn31/bb14760fd7bd76af07e6a57bf3172996 to your computer and use it in GitHub Desktop.
Save auryn31/bb14760fd7bd76af07e6a57bf3172996 to your computer and use it in GitHub Desktop.
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