import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
greip: {
type: "app",
app: "greip",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://greipapi.com/geoip`,
headers: {
Authorization: `Bearer ${this.greip.$auth.api_key}`,
},
params: {
mode: `test`,
},
})
},
})
Greip uses API keys for authentication. When you connect your Greip account, Pipedream securely stores the keys so you can easily authenticate to Greip APIs in both code and no-code steps.