Get an access token representing permission to locate a user, if the user has previously granted that permission. If so, the token can then be passed to GetLocation(User, Token) to get the location; or you can simply use this method to test whether permission is available.

Namespace:  Veriplace.Client
Assembly:  Veriplace.Client (in Veriplace.Client.dll) Version: 1.6.0.11143 (1.6.0.0)

Syntax

C#
public virtual Token GetLocationAccessToken(
	User user
)
Visual Basic (Declaration)
Public Overridable Function GetLocationAccessToken ( _
	user As User _
) As Token
Visual C++
public:
virtual Token^ GetLocationAccessToken(
	User^ user
)

Parameters

user
Type: Veriplace.Client..::.User
the user

Return Value

the access token (will not be null)

Exceptions

ExceptionCondition
Veriplace.Client..::.GetLocationNotPermittedExceptionif permission is not available
Veriplace.Client..::.UnexpectedExceptionif there was an unexpected I/O error or OAuth error

See Also