with Kraken.io and Brave Search API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kraken_io: {
type: "app",
app: "kraken_io",
}
},
async run({steps, $}) {
const data = {
"auth": {
"api_key": `${this.kraken_io.$auth.api_key}`,
"api_secret": `${this.kraken_io.$auth.api_secret}`
}
};
return await axios($, {
method: "post",
url: `https://api.kraken.io/user_status`,
headers: {
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
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`,
},
})
},
})