Before you begin
Create a TinyURL account
Sign up with TinyURL.
Generate an API token
In TinyURL, open Account → API and create a token with permission to create TinyURL links.
Extension settings
Open your CometChat app
Login to CometChat and select your app.
Configure BYO domain (optional)
If you have a paid plan, add your custom domain or subdomain. The default is
tinyurl.com.If you don’t plan on using a custom domain, keep
tinyurl.com as the default value.Choose Your Integration Method
Choose the integration method that best suits your needs:UI Kit Builder
- Enable it in both Dashboard and UI Kit Builder settings, then you can use the TinyURL extension in your custom chat experience.
Widget Builder
- Enable it in both Dashboard and Widget Builder settings, then you can use the TinyURL extension in your custom chat widget.
UI Kits
- Enable it in the Dashboard settings, then you can use the TinyURL extension in your custom chat experience built with our UI Kits.
SDK
- Enable it in the Dashboard settings, then you can use the TinyURL extension in your custom chat experience built with our SDK.
Code
This extension uses thecallExtension method provided by CometChat SDK. You can call the extension as follows:
- JavaScript
- Java
- Swift