with Workflow Max and IONOS Hosting Services?
Creates a new Client Group in Workflow Max. See the documentation
Deletes the specified client group. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workflow_max: {
type: "app",
app: "workflow_max",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.workflowmax.com/me`,
headers: {
Authorization: `Bearer ${this.workflow_max.$auth.oauth_access_token}`,
"account_id": `${this.workflow_max.$auth.account_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ionos_hosting_services: {
type: "app",
app: "ionos_hosting_services",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hosting.ionos.com/dns/v1/zones`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.ionos_hosting_services.$auth.public_prefix}.${this.ionos_hosting_services.$auth.secret}`,
"cookie": `0b04270753322c986927738ac2b6c0d8=f0bdc4e5976f6d806c765101692526bc; DPX=v1:SBQ1uQuBY/:PKIEBpGz:68843834:de`,
},
})
},
})