Zoopla.Net.Core 1.0.0

Package Description

Install-Package Zoopla.Net.Core -Version 1.0.0
dotnet add package Zoopla.Net.Core --version 1.0.0
<PackageReference Include="Zoopla.Net.Core" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Zoopla.Net.Core --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Zoopla.Net.Core, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Zoopla.Net.Core as a Cake Addin
#addin nuget:?package=Zoopla.Net.Core&version=1.0.0

// Install Zoopla.Net.Core as a Cake Tool
#tool nuget:?package=Zoopla.Net.Core&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Zoopla.Net

Zoopla.Net is a C# .NET Core wrapper for the Zoopla.co.uk API.
The documentation for the Zoopla API can be found here

Written in .Net Core 2.0

Usage

//GetAreaValueGraphs
//https://developer.zoopla.co.uk/docs/read/Area_Value_Graphs

[Test]
public async Task Should_Get_GetAreaValueGraphs()
{
    AreaValueGraphResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var options = new AreaValueGraphOptions { Size = Size.MEDIUM };
        var parameters = new StandardLocationParameters { PostCode = "e84dt" };

        result = await api.GetAreaValueGraphs(parameters, options);
    }


    Assert.That(result.AverageValuesGraphUrl,
        Is.EqualTo("https://www.zoopla.co.uk/dynimgs/graph/average_prices/E8?width=400&height=212"));
}
//GetAverageAreaSoldPrice
//https://developer.zoopla.co.uk/docs/read/Average_area_sold_price

 [Test]
public async Task Should_Get_GetAverageAreaSoldPrice()
{
    AverageAreaSoldPriceResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var parameters = new StandardLocationParameters { PostCode = "e8", OutputType = OutputType.OUTCODE };

        result = await api.GetAverageAreaSoldPrice(parameters);
    }


    Assert.That(result.PricesUrl,
        Is.EqualTo("https://www.zoopla.co.uk/home-values/london/e8/hackney-dalston"));
}
//GetAverageSoldPrices
//https://developer.zoopla.co.uk/docs/read/Average_Sold_Prices

[Test]
public async Task Should_Get_GetAverageSoldPrices()
{
    AverageSoldPriceResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var options = new AverageSoldPricesOptions();
        var paramerters = new StandardLocationParameters
        {
            PostCode = "e84dt",
            OutputType = OutputType.OUTCODE,
            AreaType = AreaType.POSTCODES
        };

        result = await api.GetAverageSoldPrices(paramerters, options); 
    }

    Assert.That(result.Areas.Count, Is.EqualTo(10));
}

Zoopla.Net

Zoopla.Net is a C# .NET Core wrapper for the Zoopla.co.uk API.
The documentation for the Zoopla API can be found here

Written in .Net Core 2.0

Usage

//GetAreaValueGraphs
//https://developer.zoopla.co.uk/docs/read/Area_Value_Graphs

[Test]
public async Task Should_Get_GetAreaValueGraphs()
{
    AreaValueGraphResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var options = new AreaValueGraphOptions { Size = Size.MEDIUM };
        var parameters = new StandardLocationParameters { PostCode = "e84dt" };

        result = await api.GetAreaValueGraphs(parameters, options);
    }


    Assert.That(result.AverageValuesGraphUrl,
        Is.EqualTo("https://www.zoopla.co.uk/dynimgs/graph/average_prices/E8?width=400&height=212"));
}
//GetAverageAreaSoldPrice
//https://developer.zoopla.co.uk/docs/read/Average_area_sold_price

 [Test]
public async Task Should_Get_GetAverageAreaSoldPrice()
{
    AverageAreaSoldPriceResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var parameters = new StandardLocationParameters { PostCode = "e8", OutputType = OutputType.OUTCODE };

        result = await api.GetAverageAreaSoldPrice(parameters);
    }


    Assert.That(result.PricesUrl,
        Is.EqualTo("https://www.zoopla.co.uk/home-values/london/e8/hackney-dalston"));
}
//GetAverageSoldPrices
//https://developer.zoopla.co.uk/docs/read/Average_Sold_Prices

[Test]
public async Task Should_Get_GetAverageSoldPrices()
{
    AverageSoldPriceResponse result;
    using (var api = new ZooplaDotNetClient(ApiKey.Value))
    {
        var options = new AverageSoldPricesOptions();
        var paramerters = new StandardLocationParameters
        {
            PostCode = "e84dt",
            OutputType = OutputType.OUTCODE,
            AreaType = AreaType.POSTCODES
        };

        result = await api.GetAverageSoldPrices(paramerters, options); 
    }

    Assert.That(result.Areas.Count, Is.EqualTo(10));
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 544 2/11/2018