with Clear Books and JVZoo?
Creates a new customer in Clear Books. See the documentation
Creates a new Purchase Document in Clear Books. See the documentation
Creates a new supplier in Clear Books. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
clear_books: {
type: "app",
app: "clear_books",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.clearbooks.co.uk/v1/businesses`,
headers: {
Authorization: `Bearer ${this.clear_books.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jvzoo: {
type: "app",
app: "jvzoo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.jvzoo.com/v2.0`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.jvzoo.$auth.api_key}`,
password: `x`,
},
})
},
})