with VideoAsk and Brave Search API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
videoask: {
type: "app",
app: "videoask",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.videoask.com/me`,
headers: {
"Authorization": `Bearer ${this.videoask.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brave_search_api: {
type: "app",
app: "brave_search_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.search.brave.com/res/v1/web/search`,
headers: {
"x-subscription-token": `${this.brave_search_api.$auth.api_key}`,
"accept": `application/json`,
"accept-encoding": `gzip`,
},
params: {
"q": `pipedream`,
},
})
},
})