← awork

New Time Entry (Instant) from awork API

Pipedream makes it easy to connect APIs for awork and 900+ other apps remarkably fast.

Trigger workflow on
New Time Entry (Instant) from the awork API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Time Entry (Instant) with awork API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Time Entry (Instant) trigger
    1. Connect your awork account
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Time Entry (Instant) from awork API
awork + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Time Entry (Instant) from awork API
awork + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Time Entry (Instant) from awork API
awork + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Time Entry (Instant) from awork API
awork + Airtable
 
Try it
Send any HTTP Request with HTTP / Webhook API on New Time Entry (Instant) from awork API
awork + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Time Entry (Instant) on awork
Description:Emit new event on each created time entry.
Version:0.0.1
Key:awork-new-time-entry

Code

import common from "../common/common.mjs";

export default {
  ...common,
  name: "New Time Entry (Instant)",
  version: "0.0.1",
  key: "awork-new-time-entry",
  description: "Emit new event on each created time entry.",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getWebhookEventType() {
      return "timetracking_added";
    },
    async deploy() {
      const timeEntries = await this.awork.getTimeEntries({
        params: {
          pageSize: 10,
          orderby: "CreatedOn DESC",
        },
      });

      timeEntries
        .reverse()
        .forEach(this.emitEvent);
    },
    emitEvent(body) {
      const data = body?.entity ?? body;

      this.$emit(data, {
        id: data.id,
        summary: `New time entry created with id ${data.id}`,
        ts: Date.parse(data.createdOn),
      });
    },
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
aworkaworkappThis component uses the awork app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.

Authentication

awork uses OAuth authentication. When you connect your awork account, Pipedream will open a popup window where you can sign into awork and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any awork API.

Pipedream requests the following authorization scopes when you connect your account:

offline_access

About awork

Your smart digital assistant

More Ways to Use awork

Triggers

New Task (Instant) from the awork API

Emit new event on each created task.

 
Try it
New Updated Time Entry (Instant) from the awork API

Emit new event on each updated time entry.

 
Try it

Actions

Create Client with the awork API

Creates a client. See docs here

 
Try it
Create Project with the awork API

Creates a project. See docs here

 
Try it
Find Users By Email with the awork API

Finds a user by email. See docs here

 
Try it