authenticate_osmapiR: Authenticate or logout osmapiR

authenticate_osmapiR Documentation

Authenticate or logout osmapiR

Description

Log in/out osmapiR.

Usage

authenticate_osmapi()

logout_osmapi()

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.

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.

See Also

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

Examples

## Not run: 
authenticate_osmapi()
logout_osmapi()

## End(Not run)

osmapiR documentation built on April 15, 2025, 9:06 a.m.