Veriplace_GetLocationAPILow-level interface for obtaining a user's location from Veriplace, when using the Veriplace_Client directly rather than the Veriplace API.
User location can only be obtained by referencing a valid Veriplace_User. Users can be identified using the Veriplace_UserDiscoveryAPI.
An OAuth Access Token is required to obtain a User's location, which may be retrieved by redirecting the User Agent to Veriplace as part of the OAuth user authorization process. Access Tokens may be cached.
Located in /Veriplace/Client.php (line 950)
Veriplace_API | --Veriplace_AsyncCapableAPI | --Veriplace_GetLocationAPI
Veriplace_Location
getLocation
(Veriplace_Token $accessToken, Veriplace_User $user, [Veriplace_LocationOptions $options = null], [int $timeoutSeconds = null])
Veriplace_Location
getLocationById
(Veriplace_Token $accessToken, Veriplace_User $user, string $id, [Veriplace_LocationOptions $options = null])
Veriplace_LocationRequestStatus
requestLocation
(Veriplace_Token $accessToken, Veriplace_User $user, [Veriplace_LocationOptions $options = null], [Veriplace_CallbackOptions $callbackOptions = null], string $callback)
getAuthorizationURI (line 975)
Get the URI to use for user redirection to get permission to obtain a user's location.
getCallbackResult (line 1178)
Process the parameters of an HTTP callback that was posted from Veriplace in response to an asynchronous location request.
The resulting Veriplace_LocationRequestStatus object will contain either a location ID (Veriplace_LocationRequestStatus::$locationId) or an error (Veriplace_LocationRequestStatus::$exception). It will not contain the actual location details; Veriplace does not deliver those by callback, for security reasons. Instead, you can pass the location ID to getLocationById() to get the location details.
The status object's Veriplace_AsyncRequestStatus::$id property will return the same unique identifier that was generated by the original request, which you can use to associate any previously stored request state with the result.
To confirm receipt of the callback, this method also sends an immediate HTTP 200 ("OK") response to Veriplace, completing the HTTP response. Do not try to do anything else with the response object after this; if your application returned anything else, or did not respond, Veriplace would repeat the callback.
getLocation (line 1020)
Get a user's location.
getLocationAccessToken (line 989)
Get an access token for a previously discovered user, if you already have permission to locate that user.
getLocationById (line 1056)
Get a copy of a previously obtained location using the location ID.
getPermittedUsers (line 1197)
Get a list of users who have granted permission for this application to locate them.
getResult (line 1147)
Attempt to retrieve the result of an asynchronous request that was previously submitted with requestLocation(). Use this method if you did not specify a callback URI in the original request.
If the request is still in progress, this will return the same request status object. If the request has completed, either successfully or unsuccessfully, it will return an updated request status object whose Veriplace_AsyncRequestStatus::$ready property will be true, and which will either contain a Veriplace_Location object (Veriplace_LocationRequestStatus::$location) or an error (Veriplace_LocationRequestStatus::$exception).
requestLocation (line 1096)
Submit an asynchronous request for a user's location.
Inherited From Veriplace_AsyncCapableAPI
Veriplace_AsyncCapableAPI::getCallbackResult()
Veriplace_AsyncCapableAPI::getResult()
Inherited from Veriplace_AsyncCapableAPI
Veriplace_AsyncCapableAPI::REQUEST_CREATION_BASE_PATH
Veriplace_AsyncCapableAPI::REQUEST_QUERY_BASE_PATH
Documentation generated on Sun, 29 Aug 2010 04:08:36 -0700 by phpDocumentor 1.4.1