This topic was automatically generated from Slack. You can find the original thread here.
Hey, when create an action in Nodejs with Trakt component is coming without code, my suggestion is
import { axios } from "@Pipedream/platform"
export default defineComponent({
props: {
trakt: {
type: "app",
app: "trakt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.trakt.tv/movies/popular`,
headers: {
"Authorization": `Bearer ${this.trakt.$auth.oauth_access_token}`,
"trakt-api-key": this.trakt.$auth.oauth_client_id
},
})
},
})
Cc: