with Testmo and TinyURL?
Appends test artifacts, fields or links to an existing automation run. See the documentation
Appends test artifacts, fields or test results to an existing thread in an automation run. See the documentation
Creates a new automation run in a target project in preparation for adding threads and test results. See the documentation
Retrieves analytics for a specific TinyURL link, including total clicks, geographic breakdowns, and device types. See the documentation
The Testmo API enables automation and integration of your testing workflows into the broader CI/CD pipeline. With Pipedream, you can use this API to trigger tests, update test cases, log results, and sync status with other project management tools. By creating custom serverless workflows on Pipedream, you can connect Testmo to various apps, manage test lifecycles, and respond to events from other services in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
testmo: {
type: "app",
app: "testmo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.testmo.$auth.sitename}.testmo.net/api/v1/user`,
headers: {
Authorization: `Bearer ${this.testmo.$auth.api_key}`,
},
})
},
})
The TinyURL API lets you shorten URLs seamlessly, which can be particularly useful when dealing with lengthy or complex web addresses. With Pipedream, you can integrate the TinyURL API to create concise, manageable links that can be easily shared, tracked, or embedded in various digital content. Beyond simple URL shortening, using Pipedream's serverless platform enables you to automate workflows that involve generating, distributing, and monitoring TinyURLs in conjunction with other apps and services.
module.exports = defineComponent({
props: {
tinyurl: {
type: "app",
app: "tinyurl",
}
},
async run({steps, $}) {
return (await require("@pipedream/platform").axios($, {
url: `https://api.tinyurl.com/create/`,
method: `post`,
headers: {
Authorization: `Bearer ${this.tinyurl.$auth.api_token}`,
},
data: {
url: `ftp://www.example.com/my-really-long-link-that-I-need-to-shorten/84378949`,
}
})).data
},
})