with ipstack and Polar?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
polar: {
type: "app",
app: "polar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.polar.sh/v1/oauth2/userinfo`,
headers: {
Authorization: `Bearer ${this.polar.$auth.oauth_access_token}`,
},
})
},
})