URL shortener
Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Get a URL and emit the HTTP body as an event on every request
Emit new event when the content of the URL changes.
Converts a long url to a Bitlink and sets additional parameters.See the docs here
Retrieves all Bitlinks for a given group. See the docs here
Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.
Finds an existing Bitlink in your account. Optionally, creates one if none are found. See the docs here
The Bitly API allows developers to build apps that interact with the Bitly URL shortening service. With the API, developers can create new short links, expand short links, and retrieve the clicks data for short links.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitly: {
type: "app",
app: "bitly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-ssl.bitly.com/v4/user`,
headers: {
Authorization: `Bearer ${this.bitly.$auth.oauth_access_token}`,
},
})
},
})
// To use any npm package on Pipedream, just import it
import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
const { data } = await axios({
method: "GET",
url: "https://pokeapi.co/api/v2/pokemon/charizard",
})
return data.species
},
})