import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
olostep: {
type: "app",
app: "olostep",
}
},
async run({steps, $}) {
const data = {
"url": `https://docs.olostep.com`,
}
return await axios($, {
method: "post",
url: `https://api.olostep.com/v1/maps`,
headers: {
Authorization: `Bearer ${this.olostep.$auth.api_key}`,
},
data,
})
},
})
Olostep uses API keys for authentication. When you connect your Olostep account, Pipedream securely stores the keys so you can easily authenticate to Olostep APIs in both code and no-code steps.