with Voicemaker and Local Reviews?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voicemaker: {
type: "app",
app: "voicemaker",
}
},
async run({steps, $}) {
const data = {"language": "en-US" }
return await axios($, {
method: "post",
url: `https://developer.voicemaker.in/voice/list`,
headers: {
Authorization: `Bearer ${this.voicemaker.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
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}`,
},
})
},
})