sachintool / bitly-connect
There is no license information available for the latest version (1.0) of this package.
Connect Bitly Account
1.0
2019-07-10 11:25 UTC
Requires
- php: >=5.6.39
This package is auto-updated.
Last update: 2025-04-11 21:28:21 UTC
README
This is used to Connect Bitly Account and to generate Bitly Url
Installation
composer require sachintool/bitly-connect
Usage
https://bitly.com/oauth/authorize
Code Generate
$code = $this->request->getQuery('code');
Create App
click this url and create app and call back url
Return BITLY_CLIENT_ID, BITLY_CLIENT_SECRET and CALL BACK URL
Call back Url
Create object
use SachinTool\BitlyConnect;
$response = new BitlyConnect();
Example with parameter
use SachinTool\BitlyConnect;
$response = $response->connect(BITLY_CLIENT_ID,BITLY_CLIENT_SECRET, $code, $callback_url);
Bitly Share
Example with parameter
use SachinTool\BitlyConnect;
$response = $response->share($access_token, $video_url);
Developer
Sachin Mishra (http://sachinms.herokuapp.com/)