What do you want to automate

with TMetric and Verifone?

Prompt, edit and deploy AI agents that connect to TMetric, Verifone and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Integrate the TMetric API with the Verifone API
Setup the TMetric API trigger to run a workflow which integrates with the Verifone API. Pipedream's integration platform allows you to integrate TMetric and Verifone remarkably fast. Free for developers.

Overview of TMetric

The TMetric API provides the ability to interact programmatically with TMetric's time tracking features, allowing developers to create, read, update, and delete time entries, projects, and workspaces. By leveraging the API within Pipedream, you can connect TMetric to hundreds of other apps to automate time tracking as part of larger business processes, such as invoicing, project management, and reporting workflows.

Connect TMetric

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    tmetric: {
      type: "app",
      app: "tmetric",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://app.tmetric.com/api/v3/user`,
      headers: {
        Authorization: `Bearer ${this.tmetric.$auth.api_token}`,
      },
    })
  },
})

Connect Verifone

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { axios } from "@pipedream/platform";
import dayjs from "dayjs";
import crypto from "crypto";

export default defineComponent({
  props: {
    verifone: {
      type: "app",
      app: "verifone",
    }
  },

  async run({steps, $}) {
    let requestDateTime = new Date();
    requestDateTime = dayjs(requestDateTime).format("YYYY-MM-DD hh:mm:ss");

    const algo = "sha256";
    let hash = this.verifone.$auth.vendor_code.length 
            + this.verifone.$auth.vendor_code 
            + requestDateTime.toString().length 
            + requestDateTime;
    hash = crypto.createHmac(algo, this.verifone.$auth.secret_key)
      .update(hash)
      .digest('hex');

    return await axios($, {
      url: `https://api.2checkout.com/rest/6.0/products/`,
      headers: {
        "X-Avangate-Authentication": `code="${this.verifone.$auth.vendor_code}" date="${requestDateTime}" hash="${hash}" algo="${algo}"`,
        Accept: "application/json"
      },
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo