Download the PHP package stevenmaguire/oauth2-elance without Composer
On this page you can find all versions of the php package stevenmaguire/oauth2-elance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stevenmaguire/oauth2-elance
More information about stevenmaguire/oauth2-elance
Files in stevenmaguire/oauth2-elance
Package oauth2-elance
Short Description Elance OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Informations about the package oauth2-elance
Elance Provider for OAuth 2.0 Client
This package provides Elance OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
Usage
Usage is the same as The League's OAuth client, using \Stevenmaguire\OAuth2\Client\Provider\Elance
as the provider.
Authorization Code Flow
Important note about the Elance API
This package attempts to use the /profiles/my API endpoint to populate the ElanceResourceOwner
object. This attempt will be successful if the resource owner has a "Contractor Profile" on Elance. If the resource owner does not have a "Contractor Profile" the request for this information will result in a 404 response and the code example above will fail.
The request to getAccessToken
will succeed regardless of "Contractor Profile" status.
Refreshing a Token
Once your application is authorized, you can refresh an expired token using a refresh token rather than going through the entire process of obtaining a brand new token. To do so, simply reuse this refresh token from your data store to request a refresh.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.