import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
veedea: {
type: "app",
app: "veedea",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://veedea.com/api/getcampaign`,
params: {
api_key: this.veedea.$auth.api_key,
token: this.veedea.$auth.access_token,
},
})
},
})
Get the list of campaigns created in the Veedea Dashboard. See the documentation
Retrieves a list of leads who purchased products through the specified campaign. See the documentation
Veedea uses OAuth authentication. When you connect your Veedea account, Pipedream will open a popup window where you can sign into Veedea and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Veedea API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://veedea.com/api/auth
?
api_key={{custom_fields.api_key}}
POST
https://veedea.com/api/auth
?
api_key={{custom_fields.api_key}}
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}