Learn R Programming

osmapiR (version 0.2.3)

authenticate_osmapi: Authenticate or logout osmapiR

Description

Log in/out osmapiR.

Usage

authenticate_osmapi()

logout_osmapi()

Arguments

Value

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.

Details

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.

See Also

Other API functions: osm_api_versions(), osm_capabilities(), osm_permissions(), set_osmapi_connection()

Examples

Run this code
if (FALSE) {
authenticate_osmapi()
logout_osmapi()
}

Run the code above in your browser using DataLab