Lightning Component With Bitly Integration
About Bitly Bitly is a URL shortening service and a link management platform. The company Bitly, Inc. was established in 2008. It is privately held and based in New York City. Bitly shortens 600 million links per month, for use in social networking, SMS, and email Step 1. Sign-up for Bitly (FREE) For Integration, we have to register for Bitly Account. Step 2. Authorization with Salesoforce For Authorization in Salesoforce. I'm using Named Credentials. because Its simplest and secure way to use. Setup | Security Controls | Named Credentials. Create a new Named Credential to store your Bitly username/password. Step 4. Create BitlyIntegration Apex Classes public class BitlyIntegration { private String accessToken; public BitlyIntegration() { this.accessToken = getAccessToken(); } //Method for create shorten URL from Bitly public String createShortenURL(String url) { HttpRequest req = new HttpRequest(); //'c...