with Scoro and Harvest?
Creates a new time entry object. Create a time entry via duration documentation, Create a time entry via start and end time documentation
Scoro is a comprehensive solution that combines project management, time tracking, and CRM functionalities. With the Scoro API, you can automate your business workflows, sync data across different systems, and enhance productivity by reducing manual tasks. The API allows you to access, manipulate, and integrate your Scoro data with other services. When used on Pipedream, you can create serverless workflows to connect Scoro with hundreds of other apps, respond to Scoro events in real-time, and automate actions based on triggers from within Scoro or other platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scoro: {
type: "app",
app: "scoro",
}
},
async run({steps, $}) {
const data = {
"company_account_id": `${this.scoro.$auth.company_name}`,
"apiKey": `${this.scoro.$auth.api_key}`,
"lang": `eng`,
}
return await axios($, {
method: "post",
url: `https://${this.scoro.$auth.company_name}.scoro.com/api/v2/companyAccount/list`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
Harvest is a time tracking and invoicing tool that can streamline the way freelancers and businesses record time for various projects and tasks. By leveraging the Harvest API on Pipedream, you can automate complex workflows that integrate time tracking data with other business tools. Generate reports, sync project data, and manage invoices with minimal manual intervention. Pipedream's serverless platform lets you create these automations using simple, code-driven components, enabling a seamless connection between Harvest and a multitude of other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harvest: {
type: "app",
app: "harvest",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://id.getharvest.com/api/v2/accounts`,
headers: {
Authorization: `Bearer ${this.harvest.$auth.oauth_access_token}`,
"User-Agent": `Pipedream (pipedream.com)`,
},
})
},
})