callExtension
CometChat.callExtension("url-shortener-bitly", "POST", "v1/shorten", { text: "Your message with URL https://yourdomain.com/very/very/long/url", }) .then((response) => { // minifiedText in response }) .catch((error) => { // Error occured });
Was this page helpful?