getAddress.Sdk 1.2.4

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.2.4
dotnet add package getAddress.Sdk --version 1.2.4
<PackageReference Include="getAddress.Sdk" Version="1.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add getAddress.Sdk --version 1.2.4
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>");

using (var api = new GetAddesssApi(apiKey))
{
    var result = await api.Address.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

    if (result.IsSuccess)
    {
        var successfulResult =  (GetAddressResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get();

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get(DAY,MONTH,YEAR);

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        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>");

using (var api = new GetAddesssApi(apiKey))
{
    var result = await api.Address.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

    if (result.IsSuccess)
    {
        var successfulResult =  (GetAddressResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get();

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get(DAY,MONTH,YEAR);

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        var count = successfulResult.Usage.Count;

        var limit1 = successfulResult.Usage.Limit1;

        var limit2 = successfulResult.Usage.Limit2;
    }
}

Release Notes

Invoice API

Version History

Version Downloads Last updated
1.5.7 211 5/9/2019
1.5.6 132 5/1/2019
1.5.5 226 4/10/2019
1.5.4 72 4/10/2019
1.5.3 2,881 3/25/2019
1.5.2 566 2/28/2019
1.5.1 84 2/26/2019
1.5.0 128 2/14/2019
1.4.9 86 2/11/2019
1.4.7 123 2/9/2019
1.4.6 82 2/8/2019
1.4.5 90 2/5/2019
1.4.4 207 12/31/2018
1.4.3 92 12/30/2018
1.4.2 92 12/30/2018
1.4.1 1,156 10/29/2018
1.4.0 625 9/4/2018
1.3.2 2,820 4/22/2018
1.2.6 303 3/2/2018
1.2.5 182 2/28/2018
1.2.4 238 2/20/2018
1.2.3 341 1/22/2018
1.2.2 5,611 9/25/2017
1.2.1 232 9/25/2017
1.1.2 207 9/21/2017
1.1.1 204 9/21/2017
1.1.0 205 9/17/2017
1.0.5 255 9/14/2017
1.0.4 332 8/21/2017
1.0.3 399 7/16/2017
1.0.2 376 7/10/2017
Show less