Before you begin
- Sign up with Bitly.
- Once you have logged in, click on the Account name displayed in the top right corner.
- Click on Settings and in the left navigation pane, select API.
- Click on Generate Token to create a new Access Token.
- Using the above Access Token, fetch the GUID for your group using their Get Groups API.
- The Access Token and Bitly Group’s GUID are required in extension settings.
Extension settings
- Login to CometChat and select your app.
- Go to the Extensions section and enable the Bitly extension.
- Open the settings for this extension.
- Enter your Bitly Access Token and Group’s GUID.
- Save your settings.
How does it work?
This extension uses thecallExtension
method provided by the CometChat SDK. You can call the extension as follows: