adamwathan/eloquent-oauth — pull request #9 by mikebronner (2014-07-04 20:47:03+00:00)
Title: Added functionality to place requests on API.

I added in the initial functionality needed to place requests on the GitHub API. This could/should probably be extracted out to the other providers as well. Also, it could probably use some refactoring to be more accessible through the OAuthManager Facade, or something.

I can then do the following, for example:

```php
public function index($nickname = null)
{
$user = User::whereNickname($nickname)->first();
$gitHubProvider = OAuth::getProvider('github');
dd($gitHubProvider->request('/users/' . $nickname . '/gists', $user->gitHubAccessToken));
}
```

I think it is important to keep the access token configurable, but could default to the logged in user if left blank. That way I can issue requests on behalf of different users that are authenticated in my system.

Please let me know what you think. I have implemented it in this rudimentary fashion for now to get up and running, but would be happy to discuss cleaning it up with you, and discuss how you think it should work.

All the best,
~Mike