Skip to content

Commit

Permalink
rename OAuth1 #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille37 committed May 17, 2024
1 parent 3e986a9 commit cb1c161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/OSM/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ class OSM_Api
const USER_AGENT = 'https://github.com/Cyrille37/yapafo';

//const URL_DEV_UK = 'https://master.apis.dev.openstreetmap.org/api/0.6';
const URL_DEV_UK = 'https://master.apis.dev.openstreetmap.org';
/**
* doc: https://wiki.openstreetmap.org/wiki/Sandbox_for_editing
* alias https://master.apis.dev.openstreetmap.org
*/
const URL_DEV_UK = 'https://api06.dev.openstreetmap.org';
//deprecated: const OSMAPI_URL_PROD_PROXY_LETTUFE = 'http://beta.letuffe.org/api/0.6';
//const URL_PROD_FR = 'http://api.openstreetmap.fr/api/0.6';
const URL_PROD_UK = 'https://api.openstreetmap.org';
Expand Down
4 changes: 2 additions & 2 deletions src/OSM/Auth/OAuth.php → src/OSM/Auth/OAuth1.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
use Cyrille37\OSM\Yapafo\Exceptions\HttpException ;

/**
* Class OSM_OAuth implement OAuth (Open Authorization)
* Class OSM_OAuth implement OAuth 1 (Open Authorization)
*
* http://wiki.openstreetmap.org/wiki/OAuth
* http://oauth.net/documentation/
* https://oauth.net/core/1.0a/
* http://tools.ietf.org/html/rfc5849
*/
class OAuth implements IAuthProvider {
class OAuth1 implements IAuthProvider {

const BASE_URL_PROD = 'https://www.openstreetmap.org';
const BASE_URL_DEV = 'https://master.apis.dev.openstreetmap.org';
Expand Down

0 comments on commit cb1c161

Please sign in to comment.