10 defined(
'JPATH_PLATFORM') or die();
40 $this->options = isset($options) ? $options :
new JRegistry;
42 $this->options->
def(
'accessTokenURL',
'http://www.openstreetmap.org/oauth/access_token');
43 $this->options->def(
'authoriseURL',
'http://www.openstreetmap.org/oauth/authorize');
44 $this->options->def(
'requestTokenURL',
'http://www.openstreetmap.org/oauth/request_token');
53 parent::__construct($this->options, $client, $input, null,
'1.0');
63 public function verifyCredentials()
79 public function validateResponse($url, $response)
81 if ($response->code != 200)
83 $error = htmlspecialchars($response->body);
85 throw new DomainException($error, $response->code);