with Membership.io and Local Reviews?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
membership_io: {
type: "app",
app: "membership_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.membership.io/api/v2/me`,
headers: {
Authorization: `Bearer ${this.membership_io.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
local_reviews: {
type: "app",
app: "local_reviews",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.localreviews.com/api/v2/oauth/oauth-request/get-survey-url`,
headers: {
Authorization: `Bearer ${this.local_reviews.$auth.oauth_access_token}`,
},
})
},
})