with Channable and Currents API?
Emit new event when a new stock update is created. See the documentation
Emit new event when a stock update is updated. See the documentation
List stock updates for a company and project. See the documentation
Update a stock update for a company and project. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
channable: {
type: "app",
app: "channable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.channable.com/v2/companies/${this.channable.$auth.company_id}/projects/${this.channable.$auth.project_id}/orders`,
headers: {
Authorization: `Bearer ${this.channable.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
currents_api: {
type: "app",
app: "currents_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.currentsapi.services/v1/search?language=us&keywords=amazon&apiKey=${this.currents_api.$auth.api_token}`,
})
},
})