OAuth2 Request Instance

Simple OAuth2 Request Implementation.


Server Request

Implementation OAuth2 ServerRequest instance.

$request = new \Samy\OAuth2\ServerRequest();

Client Request

Implementation OAuth2 ClientRequest instance.

$request = new \Samy\OAuth2\ClientRequest();

sendRequest

Send request action.

$response = $request->sendRequest($endpoint);