Skip to content

Instantly share code, notes, and snippets.

@glenhallworthreadify
glenhallworthreadify / Retrieving Esri ArcGIS Maps Token in Dotnet Core.md
Last active April 9, 2019 17:52
Retrieving Esri/ArcGIS Maps Token in Dotnet Core

Retrieving Esri/ArcGIS Maps Token in Dotnet Core

Esri has a premium service which requires adding a token to REST API requests for services like batch geocoding. The service has a few gotchas. The sample code is:

    public class EsriTokenResponse
    {
        [JsonProperty(PropertyName = "access_token")]
        public string AccessToken { get; set; }
        [JsonProperty(PropertyName = "expires_in")]