Online Time Tracking and Invoicing Software
Creates a new time entry object. Create a time entry via duration documentation, Create a time entry via start and end time documentation
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
The Harvest API allows developers to programmatically access data and objects
in Harvest, a web-based time tracking application. With the API, developers can
create applications that submit and retrieve time tracking data, as well as
automate various aspects of the Harvest user experience.
Some examples of what you can build using the Harvest API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harvest: {
type: "app",
app: "harvest",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.harvestapp.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.harvest.$auth.oauth_access_token}`,
"Harvest-Account-Id": `${this.harvest.$auth.account_id}`,
"User-Agent": `Pipedream.com`,
},
params: {
account_id: `${this.harvest.$auth.account_id}`,
},
})
},
})
package main
import (
"fmt"
pd "github.com/PipedreamHQ/pipedream-go"
)
func main() {
// Access previous step data using pd.Steps
fmt.Println(pd.Steps)
// Export data using pd.Export
data := make(map[string]interface{})
data["name"] = "Luke"
pd.Export("data", data)
}