Skip to content

Instantly share code, notes, and snippets.

@auryn31
Last active Sep 25, 2019
Embed
What would you like to do?
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