import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ticket_source: {
type: "app",
app: "ticket_source",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ticketsource.io/events`,
auth: {
username: `${this.ticket_source.$auth.api_key}`,
password: ``,
},
})
},
})
Ticket Source uses API keys for authentication. When you connect your Ticket Source account, Pipedream securely stores the keys so you can easily authenticate to Ticket Source APIs in both code and no-code steps.