import TrackviaAPI from 'trackvia-api';
export default defineComponent({
props: {
trackvia: {
type: "app",
app: "trackvia",
}
},
async run({ steps, $ }) {
const api = new TrackviaAPI(
this.trackvia.$auth.api_key,
this.trackvia.$auth.auth_token,
'https://go.trackvia.com',
this.trackvia.$auth.account_id);
return api.getUsers({ start: 1, max: 10 });
},
})
TrackVia uses API keys for authentication. When you connect your TrackVia account, Pipedream securely stores the keys so you can easily authenticate to TrackVia APIs in both code and no-code steps.