This adds support for authenticating any request in the client with OAuth2. It uses the thephpleague/oauth2-client library (although I don't think I used many parts of it...)
I will likely have to make changes, so this is still a work in progress. Let me know if you see any issues, have any code review comments, or think I should organize the files differently, integrate files together, etc. 👀
I have not added documentation yet either.
Testing
I added additional tests for Client2 and RequestHandler2, which are just the existing tests but edited.
You can also test by making calls like this:
client = new Client2('<access-token>');
$client->getBlogAvatar('some-blog-name');
$client->follow('some-blog-name');
Authenticating with OAuth2 [work in progress]
This adds support for authenticating any request in the client with OAuth2. It uses the thephpleague/oauth2-client library (although I don't think I used many parts of it...)
I will likely have to make changes, so this is still a work in progress. Let me know if you see any issues, have any code review comments, or think I should organize the files differently, integrate files together, etc. 👀
I have not added documentation yet either.
Testing
I added additional tests for Client2 and RequestHandler2, which are just the existing tests but edited.
You can also test by making calls like this:
@ceyko