Skip to main content

Bitly

Bitly is a well-known URL shortener and link management platform and the DronaHQ is providing users to experience and implement the features of the Bitly platform in their micro apps with the help of Bitly Connector. You can now get groups and create shortened URLs.

Configuring API Connector in DronaHQ

A pop-up will display asking you to connect to your Bitly account. Authorize it and your Bitly connector will be ready

Sign-in to your Bitly account
Sign-in to your Bitly account

After successfully configuring and saving the connector settings, you can easily access your newly connected account by navigating to the connected accounts list. You can find this option from the Connector -> Manage Account section. This centralized location allows you to conveniently monitor and manage your connected accounts.

Supported API endpoints

ActionDescription
GetGroupsRetrieve the list of groups associated with your Bitly account.
GenerateShortLinkCreate a shortened link using Bitly's URL shortening service.

Using Bitly Connector

Create shortened URL

The main purpose of using the Bitly connector service is to create short URLs of long URLs. To do this we have a dedicated endpoint called GenerateShortLink.

  1. We have a microapp with several controls.
    App layout
    App layout
  2. On the trigger event of the button, we will add a server-side action of Bitly connector with GenerateShortLink endpoint then select the configured account.
  3. Provide the necessary details like keywords for long URLs and group GUID.
    Config
  4. Add a variable to use the response and then click Finish.
  5. Add another event to set the received output from the connector to JSON viewer.
  6. Preview the app and you will get your shortened URL of a long URL.
    Shortened URL
    Shortened URL

Get group(s) details

You can view the details like – account creation date, GUID, organization name, and more - of the user account(s) present in the ID, we have to go to the data-bind section of our control and select the Bitly connector, select GetGroups endpoint, and finally select our configured account.

Do a refresh response, then bind the keys as columns for the control and click Test & Finish.

Get group details
Get group details