Short URL wrapper for google and bitly API

Short long url to short url using google shortener and bitly API. It covers short url

Share on Social Media

Short URL wrapper for google and bitly API

Screenshots


Details


Short URL API Wrapper:


Short URL API(google/bitly) wrapper to generate short url

How to use it:


use WSP\ShortenerWrapper\Shortener;
$shortner = new Shortener();
$provider = $shortner->getProvider('google', ['apiKey' => 'YOUR_API_KEY']);
$response = $provider->callService('https://google.com');
print_r($response);

$provider = $shortner->getProvider('bitly', ['apiKey' => 'YOUR_API_KEY', 'login' => 'YOUR_LOGIN_ID']);
$response = $provider->callService('https://google.com');
print_r($response);exit();

Version History


v1.0

Released On: November 20, 2017


Reviews


Not yet reviewed

Question or Comment


No support questions or comments