PHP RestApi
REST is an acronym for REpresentational State Transfer and an architectural style for distributed hypermedia systems.
|
Classes | |
class | ClientRequest |
interface | RequestInterface |
class | Response |
interface | ResponseInterface |
class | ServerRequest |
Functions | |
getGrantType () | |
withGrantType (string $GrantType) | |
getClientId () | |
withClientId (string $ClientId) | |
getClientSecret () | |
withClientSecret (string $ClientSecret) | |
getUsername () | |
withUsername (string $Username) | |
getPassword () | |
withPassword (string $Password) | |
getScope () | |
withScope (string $Scope) | |
Variables | |
trait | RequestTrait |
$client_id = "" | |
$client_secret = "" | |
$username = "" | |
$password = "" | |
$scope = "" | |
Samy\OAuth2\getClientId | ( | ) |
Retrieve provided client id.
Samy\OAuth2\getClientSecret | ( | ) |
Retrieve provided client secret.
Samy\OAuth2\getGrantType | ( | ) |
Retrieve provided grant type.
Samy\OAuth2\getPassword | ( | ) |
Retrieve provided password.
Samy\OAuth2\getScope | ( | ) |
Retrieve provided scope.
Samy\OAuth2\getUsername | ( | ) |
Retrieve provided username.
Samy\OAuth2\withClientId | ( | string | $ClientId | ) |
Return an instance with provided client id.
[in] | string | $ClientId | Client id |
Samy\OAuth2\withClientSecret | ( | string | $ClientSecret | ) |
Return an instance with provided client secret.
[in] | string | $ClientSecret | Client secret |
Samy\OAuth2\withGrantType | ( | string | $GrantType | ) |
Retrieve provided grant type.
[in] | string | $GrantType | Grant type |
Samy\OAuth2\withPassword | ( | string | $Password | ) |
Return an instance with provided password.
[in] | string | $Password | Password |
Samy\OAuth2\withScope | ( | string | $Scope | ) |
Return an instance with provided scope.
[in] | string | $Scope | Scope |
Samy\OAuth2\withUsername | ( | string | $Username | ) |
Return an instance with provided username.
[in] | string | $Username | Username |
|
protected |
describe client id
|
protected |
describe client secret
|
protected |
describe password
|
protected |
describe scope
|
protected |
describe username
trait Samy::OAuth2\RequestTrait |
Describes OAuth2 Request reuse code.