import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
icontact: {
type: "app",
app: "icontact",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.icontact.com/icp/a/{{YOUR_ACCOUNT_ID}}/c/{{YOUR_CLIENT_FOLDER_ID}}`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"API-Version": `2.2`,
"API-AppId": `${this.icontact.$auth.api_app_id}`,
"API-Username": `${this.icontact.$auth.api_username}`,
"API-Password": `${this.icontact.$auth.api_password}`,
},
})
},
})
iContact uses API keys for authentication. When you connect your iContact account, Pipedream securely stores the keys so you can easily authenticate to iContact APIs in both code and no-code steps.
To retrieve your API's App ID, Username, Password:
Your Account ID is 1234
and your Client Folder ID is ABCD
if your API URL is https://app.icontact.com/icp/a/1234/c/ABCD/