authenticate_osmapi | R Documentation |
Log in/out osmapiR.
authenticate_osmapi()
logout_osmapi()
All functions that require authentication will trigger the log in if the session is not yet authenticated, so calling
this function is not really needed. Use authenticate_osmapi
to sign in before executing scripts that require
authentication to avoid interruptions.
For authenticate_osmapi
, print the user and permissions of the connection and return invisibly the display
name of the logged user. logout_osmapi
clear the OAuth2 token and can be useful to change user.
Other API functions:
osm_api_versions()
,
osm_capabilities()
,
osm_permissions()
,
set_osmapi_connection()
## Not run:
authenticate_osmapi()
logout_osmapi()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.