Veriplace_ClientLow-level Veriplace client implementation in PHP.
Users of the Veriplace client will minimally require an OAuth consumer key and OAuth consumer secret representing their application. In addition, some (but not all) API functions will require an application-specific Access Token.
Located in /Veriplace/Client.php (line 95)
Constructor __construct (line 131)
Constructs a client object with the specified properties.
createExternalUserDiscoveryURI (line 386)
Creates a URI that will tell the Veriplace server to initiate user discovery and then call your application (using the specified callback URI).
This method is intended for use in applications where the main business logic is not tied to a web front-end. By asking a user to visit this URI, you allow Veriplace to interact with the user. Your application needs a single externally accessible URI to receive the HTTP callback.
When you receive the callback, it will include a request token whose value is identical to the one returned by this method; in other words, that token associates a particular callback with the original call to CreateExternalUserDiscoveryURI that started that process. The callback code can then call getAccessToken to convert the request token to an access token, and then use the Veriplace_UserDiscoveryAPI to get the user identifier. (If using the Veriplace web framework, calling Veriplace::requireUser() takes care of both of those steps.)
Using this method requires OAuth 1.0 Rev A, which is now the default protocol version.
getAccessToken (line 333)
Returns an access token for an OAuth callback request.
getAllParameters (line 432)
Shortcut for getting all named request parameters as an array.
getParameter (line 423)
Shortcut for getting the value of a named request parameter, returning null if not found.
getRequestToken (line 316)
Returns the request token value from the OAuth callback request. This is
mainly useful if you are receiving a callback from a user discovery process that was previously started with createExternalUserDiscoveryURI(), and need to match the current callback to the previously stored token for a particular user.
isCallback (line 242)
Returns true if the current request is an OAuth callback.
ACCESS_TOKEN_PATH
= "/api/accessToken"
(line 118)
APPLICATION_INFO_PATH
= "/application"
(line 120)
LONG_TIMEOUT
= "veriplace_long_timeout"
(line 119)
PRETTY_USER_DISCOVERY_USER_AUTHORIZATION_PATH
= "/api/user"
(line 121)
REQUEST_TOKEN_PATH
= "/api/requestToken"
(line 116)
USER_AUTHORIZATION_PATH
= "/api/userAuthorization"
(line 117)
Documentation generated on Sun, 29 Aug 2010 04:08:36 -0700 by phpDocumentor 1.4.1