import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ipregistry: {
type: "app",
app: "ipregistry",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ipregistry.co`,
headers: {
"authorization": `ApiKey ${this.ipregistry.$auth.api_key}`,
},
})
},
})
Ipregistry uses API keys for authentication. When you connect your Ipregistry account, Pipedream securely stores the keys so you can easily authenticate to Ipregistry APIs in both code and no-code steps.