with GrabPenny and ipstack?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grabpenny: {
type: "app",
app: "grabpenny",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://grabpenny.com/api/v1/client/auth/me/`,
headers: {
Authorization: `Bearer ${this.grabpenny.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ipstack: {
type: "app",
app: "ipstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.ipstack.com/8.8.8.8`,
params: {
access_key: `${this.ipstack.$auth.access_key}`,
},
})
},
})