OAuth

Extends \Joomla\OAuth1\Client

Joomla Framework class for generating the OpenStreetMap API access token.

deprecated
since

1.0

deprecated

The joomla/openstreetmap package is deprecated

Methods

__construct

Constructor.

__construct(array $options = array(), \Joomla\Http\Http $client, \Joomla\Input\Input $input, \Joomla\Application\AbstractWebApplication $application) 
since

1.0

Arguments

$options

arrayOAuth options object.

$client

\Joomla\Http\HttpThe HTTP client object.

$input

\Joomla\Input\InputThe Input object

$application

\Joomla\Application\AbstractWebApplicationThe application object.

validateResponse

Method to validate a response.

validateResponse(string $url, \Joomla\Http\Response $response) : void
since

1.0

throws

\DomainException

Arguments

$url

stringThe request URL.

$response

\Joomla\Http\ResponseThe response to validate.

verifyCredentials

Method to verify if the access token is valid by making a request to an API endpoint.

verifyCredentials() : boolean
since

1.0

Response

booleanReturns true if the access token is valid and false otherwise.