with LambdaTest and Unleashed Software?
LambdaTest API on Pipedream allows developers to integrate and automate browser testing directly within their development workflows. Using this API, you can create, manage, and execute Selenium, Cypress, and other tests on a scalable cloud grid, facilitating continuous testing with minimal setup. This integration is especially beneficial for continuous integration/continuous deployment (CI/CD) pipelines, enabling teams to ensure that applications perform as expected across multiple browser environments before deployment.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    lambdatest: {
      type: "app",
      app: "lambdatest",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.lambdatest.com/automation/api/v1/projects`,
      headers: {
        "Accept": `application/json`,
      },
      auth: {
        username: `${this.lambdatest.$auth.username}`,
        password: `${this.lambdatest.$auth.access_key}`,
      },
    })
  },
})
import { axios } from "@pipedream/platform";
import crypto from "crypto";
export default defineComponent({
  props: {
    unleashed_software: {
      type: "app",
      app: "unleashed_software",
    }
  },
  async run({ steps, $ }) {
    const baseUrl = "https://api.unleashedsoftware.com";
    const resource = "Accounts";
    // The queryString is used in calculating signature, add your query string parameters 
    // e.g. for the Customers resource customerCode=FRANCK&includeObsolete=true
    // or just pass an empty string
    const queryString =  "";
    const uri = `${baseUrl}/${resource}${queryString ? `?${queryString}` : ""}`
    // Generate HMAC-SHA256 signature
    const signature = crypto
      .createHmac("sha256", this.unleashed_software.$auth.api_key)
      .update(queryString)
      .digest("base64")
    // Make the request
    return await axios($, {
      method: "GET",
      url: uri,
      headers: {
        "api-auth-id": this.unleashed_software.$auth.api_id,
        "api-auth-signature": signature,
        "Accept": "application/json",
        "Content-Type": "application/json; charset=utf-8",
      },
    });
  },
})