import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paymo: {
type: "app",
app: "paymo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.paymoapp.com/api/me`,
auth: {
username: `${this.paymo.$auth.api_key}`,
password: `random`,
},
})
},
})
Paymo uses API keys for authentication. When you connect your Paymo account, Pipedream securely stores the keys so you can easily authenticate to Paymo APIs in both code and no-code steps.
API Keys can be generated from the Paymo application, on the My Account page. See docs.
Using an API Key is similar to Basic Auth, but instead of providing the email/password, you provide the API Key as the username and any text for the password.