Opauth strategy for Bitly authentication.
Implemented based on http://dev.bitly.com/api.html
Opauth is a multi-provider authentication framework for PHP.
-
Install Opauth-Bitly:
cd path_to_opauth/Strategy git clone git://github.com/jelled/opauth-bitly.git Bitly
-
Create a Bitly application at http://dev.bitly.com/my_apps.html and set http://[path_to_opauth]/bitly/oauth_callback as your default callback URL.
-
Configure Opauth-Bitly strategy.
-
Direct user to
http://[path_to_opauth]/bitly
to authenticate -
Now that you have the user's token, check out https://github.com/Falicon/BitlyPHP for easy interface with the bitly api.
Required parameters:
'Bitly' => array(
'client_id' => 'YOUR CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET'
)
Opauth-Bitly is MIT Licensed Copyright © 2013 Benjamin Bjurstrom (@benbjurstrom)