DoSomething / gateway

:lock_with_ink_pen: An opinionated PHP REST API client.
MIT License
2 stars 0 forks source link

Add methods to swap which grant is used per request. #30

Closed DFurnes closed 8 years ago

DFurnes commented 8 years ago

Changes

This pull request adds methods to specify which grant is used per request (either asClient() to make request with the client credentials, or asUser() to make the request using the current user's token).

I have some more changes I'm working on, but holding those off for another PR! 😉

How should this be reviewed?

Check out the changes and make sure they seem okay! See commit titles for context.


For review: @weerd

weerd commented 8 years ago

Awesome! 👍