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}`,
},
})
},
})
Content Publication Alert Shortener: Automate short link generation for new blog posts or articles by triggering a Pipedream workflow whenever a new piece of content is published. Connect Rebrandly with a CMS like WordPress to create memorable, branded short links for each post, which can then be shared across social media platforms via a Pipedream integration with Twitter, LinkedIn, or Facebook.
E-Commerce Promotion Tracker: Generate unique, trackable short links for product promotions using Rebrandly within a Pipedream workflow. Link this to an e-commerce platform such as Shopify to disseminate promotion-specific URLs through marketing emails or SMS campaigns, while tracking click-through rates to gauge the effectiveness of your campaigns.
Event Registration Coordinator: Simplify event sign-up processes by integrating Rebrandly with event management tools like Eventbrite in a Pipedream workflow. Create branded short links for event registrations and automatically distribute them to potential attendees through email marketing tools like Mailchimp, streamlining the registration process and improving the user experience.
Rebrandly uses OAuth authentication. When you connect your Rebrandly account, Pipedream will open a popup window where you can sign into Rebrandly and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Rebrandly API.
Pipedream requests the following authorization scopes when you connect your account:
rbapi offline_access
GET
https://oauth.rebrandly.com/connect/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://oauth.rebrandly.com/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://oauth.rebrandly.com/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}