with GoDaddy and Notion (API Key)?
The GoDaddy API provides programmatic access to manage aspects of your GoDaddy domain and hosting services. Through Pipedream, you can automate domain availability checks, renewals, and DNS record management. This enables seamless integration of domain-related operations within your automated workflows, such as dynamically updating DNS records or triggering actions based on domain registration events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
godaddy: {
type: "app",
app: "godaddy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.godaddy.com/v1/domains/available`,
headers: {
"Authorization": `sso-key ${this.godaddy.$auth.api_key}:${this.godaddy.$auth.api_secret}`,
},
params: {
domain: `example.guru`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notion_api_key: {
type: "app",
app: "notion_api_key",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.notion.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.notion_api_key.$auth.api_secret}`,
"Notion-Version": `2021-08-16`,
},
})
},
})