Falicon / BitlyPHP

A simple PHP library for interacting with the Bit.ly API (including the new OAuth endpoints)
http://falicon.com
189 stars 134 forks source link

Exchange of Username and Password for Access Token #15

Closed alexfierro closed 9 years ago

alexfierro commented 9 years ago

The Bitly documentation (http://dev.bitly.com/authentication.html) allows for the ability to convert a username and password directly into an access token.

The process is very similar to OAuth Web Flow with a POST request to /oauth/access_token. However, client_id and client_secret are used to create an Authorization header instead of being sent in the request.