arcgis_geocode v0.2.0 ArcgisGeocode.Authenticator

Provides the ability to request an access token from the ArcGIS World Geocoding Service APIs.

Summary

Functions

Gets an authentication token for use in ArcGIS World Geocoding Service API operations and stores it for use in subsequent API requests by means of ArcgisGeocode.TokenCache

Functions

get_token()

Specs

get_token :: {atom, String.t}

Gets an authentication token for use in ArcGIS World Geocoding Service API operations and stores it for use in subsequent API requests by means of ArcgisGeocode.TokenCache.

This function will first check the ArcgisGeocode.TokenCache for a cached authentication token and will return this token if it has not expired. If the token has expired or no token has been cached, a new token is requested via an authentication request to the ArcGIS World Geocoding Service APIs and this new token is stored.