with OTO and Traffit?
Emit new event when the status of an order changes. See the documentation
Provides detailed information about a specific order. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
oto: {
type: "app",
app: "oto",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.oto.$auth.api_url}/rest/v2/accountInfo`,
headers: {
Authorization: `Bearer ${this.oto.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
traffit: {
type: "app",
app: "traffit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.traffit.$auth.subdomain}.traffit.com/api/integration/v2/users/`,
headers: {
Authorization: `Bearer ${this.traffit.$auth.oauth_access_token}`,
"x-request-page-size": `5`,
"x-request-current-page": `1`,
},
})
},
})