with Frappe and Uber Direct?
The Frappe API provides a robust interface to interact with the Frappe Framework, enabling developers to create, read, update, and delete records in Frappe apps, trigger workflows, and handle complex business logic. Leveraging Pipedream's capabilities, you can harness this API to automate tasks, sync data across different platforms, and build powerful serverless workflows that enhance the productivity and efficiency of your business processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frappe: {
type: "app",
app: "frappe",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.frappe.$auth.base_url}/api/method/frappe.auth.get_logged_user`,
auth: {
username: `${this.frappe.$auth.api_key}`,
password: `${this.frappe.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uber_direct: {
type: "app",
app: "uber_direct",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.uber.com/v1/customers/${this.uber_direct.$auth.customer_id}/deliveries`,
headers: {
Authorization: `Bearer ${this.uber_direct.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})