$authorizationServer
$authorizationServer : array
The url for the authorization server
A class that represents a client's OCLC Access Token.
An Access Token typically represents the rights of an application
__construct(string $grantType, array $options)
Construct a new Access Token
string | $grantType |
|
array | $options |
|
create(\OCLC\Auth\OCLC\Auth\WSKey $wskey, \OCLC\Auth\OCLC\User $user = null)
Create a new Access Token
Create a new Access Token by making a request to the Authorization Server. If successful add properties to Access Token Object
\OCLC\Auth\OCLC\Auth\WSKey | $wskey | A valid WSKey object |
\OCLC\Auth\OCLC\User | $user | A valid User object |
parseTokenResponse(string $responseJSON)
Parse the Access Token Response Parses the Access Token Response received from the Authorization Server and adds the relevant information to the Access Token object as properties
string | $responseJSON | JSON Response from the Authorization Server |