with Action1 and Sitecreator.io?
Emit new event when a new lead is added to a website. See the docs here
Emit new event when a new newsletter contact is added to a website. See the docs here
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
action1: {
type: "app",
app: "action1",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.action1.com/api/3.0/organizations`,
headers: {
Authorization: `Bearer ${this.action1.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sitecreator_io: {
type: "app",
app: "sitecreator_io",
}
},
async run({steps, $}) {
const data = {
"siteUrl": `{your_site_url}`,
}
return await axios($, {
method: "post",
url: `https://api.sitecreator.io/v1/site/checkAvailability`,
headers: {
"Content-Type": `application/json`,
"Your_Api_Key": `${this.sitecreator_io.$auth.api_key}`,
},
data,
})
},
})