import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mallabe: {
type: "app",
app: "mallabe",
}
},
async run({steps, $}) {
const data = {
"method": "get",
"webhookUrl": "https://702977cdd2a2e3ed840ebe14abde8d4e.m.pipedream.net",
"website": `http://www.greeninvoice.co.il`
}
return await axios($, {
method: "post",
url: `https://mallabe.p.rapidapi.com/v1/currencies/convert`,
headers: {
"x-rapidapi-host": `mallabe.p.rapidapi.com`,
"x-rapidapi-key": `${this.mallabe.$auth.rapid_api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
Mallabe uses API keys for authentication. When you connect your Mallabe account, Pipedream securely stores the keys so you can easily authenticate to Mallabe APIs in both code and no-code steps.