with Rebrandly and Bitbucket Data Center?
The Rebrandly API enables the creation, updating, and management of branded short links. Within Pipedream, you can leverage this API to automate custom URL shortening workflows, analyze link performance, and seamlessly integrate URL management into your business processes or applications.
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitbucket_data_center: {
type: "app",
app: "bitbucket_data_center",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.bitbucket_data_center.$auth.api_url}/rest/api/1.0/projects`,
headers: {
Authorization: `Bearer ${this.bitbucket_data_center.$auth.http_access_token}`,
},
})
},
})