New config parameter oauth2_token:
$config = array( 'oauth2_token' => 'YOUR_OAUTH2_TOKEN', ... further parameters ); $osm = new Services_OpenStreetMap($config);
The routines to obtain OAuth2 authorization code and in second step the token are not included. Therefore You need to use an OAuth2 library or write your own code.
Extended code to support OAuth2. Two files are changed:
New config parameter oauth2_token:
$config = array( 'oauth2_token' => 'YOUR_OAUTH2_TOKEN', ... further parameters ); $osm = new Services_OpenStreetMap($config);
The routines to obtain OAuth2 authorization code and in second step the token are not included. Therefore You need to use an OAuth2 library or write your own code.