Custom URL Shortener
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Using the Rebrandly API you can easily build a variety of useful link
management solutions. The API enables developers to quickly and easily create,
manage, and track branded short URLs through their platform. Here are some
examples of what you can build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rebrandly: {
type: "app",
app: "rebrandly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rebrandly.com/v1/account`,
headers: {
Authorization: `Bearer ${this.rebrandly.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})