getAddress.Sdk 1.6.2

SDK for https://getaddress.io/

There is a newer version of this package available.
See the version list below for details.
Install-Package getAddress.Sdk -Version 1.6.2
dotnet add package getAddress.Sdk --version 1.6.2
<PackageReference Include="getAddress.Sdk" Version="1.6.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add getAddress.Sdk --version 1.6.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

getAddress.io SDK

Install

Install from Nuget:

PM> Install-Package getAddress.Sdk

Usage

Find postal addresses for a UK postcode and optional house name/number

var apiKey = new ApiKey("<YOUR API KEY>");

IAddressService addressService = new AddressService(apiKey);

var result = await addressService.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var latitude = successfulResult.Latitude;

    var Longitude = successfulResult.Longitude;

    foreach (var address in successfulResult.Addresses)
    {
        var line1 = address.Line1;
        var line2 = address.Line2;
        var line3 = address.Line3;
        var line4 = address.Line4;
        var locality = address.Locality;
        var townOrCity = address.TownOrCity;
        var county = address.County;
    }
}

Get the current day's usage and usage limits

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get();

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Get usage and limits for a given day, month and year

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get(new GetUsageRequest(DAY,MONTH,YEAR));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

getAddress.io SDK

Install

Install from Nuget:

PM> Install-Package getAddress.Sdk

Usage

Find postal addresses for a UK postcode and optional house name/number

var apiKey = new ApiKey("<YOUR API KEY>");

IAddressService addressService = new AddressService(apiKey);

var result = await addressService.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var latitude = successfulResult.Latitude;

    var Longitude = successfulResult.Longitude;

    foreach (var address in successfulResult.Addresses)
    {
        var line1 = address.Line1;
        var line2 = address.Line2;
        var line3 = address.Line3;
        var line4 = address.Line4;
        var locality = address.Locality;
        var townOrCity = address.TownOrCity;
        var county = address.County;
    }
}

Get the current day's usage and usage limits

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get();

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Get usage and limits for a given day, month and year

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get(new GetUsageRequest(DAY,MONTH,YEAR));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Release Notes

Permission API

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.7.4 176 1/3/2020
1.7.3 57 12/27/2019
1.7.2 95 12/17/2019
1.7.1 870 11/19/2019
1.7.0 59 11/17/2019
1.6.4 110 11/5/2019
1.6.3 64 11/1/2019
1.6.2 126 10/17/2019
1.6.1 82 10/15/2019
1.6.0 1,137 9/27/2019
1.5.9 93 9/25/2019
1.5.8 597 8/15/2019
1.5.7 1,528 5/9/2019
1.5.6 257 5/1/2019
1.5.5 373 4/10/2019
1.5.4 132 4/10/2019
1.5.3 4,432 3/25/2019
1.5.2 1,232 2/28/2019
1.5.1 135 2/26/2019
1.5.0 189 2/14/2019
1.4.9 148 2/11/2019
1.4.7 179 2/9/2019
1.4.6 134 2/8/2019
1.4.5 144 2/5/2019
1.4.4 309 12/31/2018
1.4.3 152 12/30/2018
1.4.2 157 12/30/2018
1.4.1 1,689 10/29/2018
1.4.0 1,019 9/4/2018
1.3.2 3,799 4/22/2018
1.2.6 399 3/2/2018
1.2.5 268 2/28/2018
1.2.4 332 2/20/2018
1.2.3 435 1/22/2018
1.2.2 8,282 9/25/2017
1.2.1 323 9/25/2017
1.1.2 288 9/21/2017
1.1.1 281 9/21/2017
1.1.0 284 9/17/2017
1.0.5 356 9/14/2017
1.0.4 424 8/21/2017
1.0.3 558 7/16/2017
1.0.2 533 7/10/2017
Show less