Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enbisys.AVM - the C# library for the AVM

This is api client library for AVM (automated valuation machine) - https://avm.enbisys.com/

Get instant and accurate Property Valuations and Predictive Analytics with our AI and Big Data tools. And make smart decisions faster

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Installation

add the following to packages.config

<PackageReference Include="Enbisys.AVM" Version="1.0.1" />

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Getting Started

using System;
using System.Diagnostics;
using Enbisys.AVM.Api;
using Enbisys.AVM.Client;
using Enbisys.AVM.Model;

namespace Enbisys.AVM
{
    public class Example
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "https://avm.enbisys.com/api";
            Configuration.Default.ApiKey.Add("X-API-KEY", "SET YOUR TOKEN HERE!");

            var apiInstance = new DefaultApi(Configuration.Default);


            var requiredFeatures = new RequiredFeatures
            (
                "B1 1TB",
                NewOrResale.New,
                FloorLevel.Basement,
                160,
                PropertyType.Semidetachedhouse,
                6
            );

            var propertyFeatures = new PropertyFeatures
            (
                requiredFeatures
            );

            try
            {
                var result = apiInstance.GetFastValuation(propertyFeatures);
                var valuation = apiInstance.GetValuation(propertyFeatures);

                Console.WriteLine("Current price: " + result);
                Console.WriteLine("Price range is: " + valuation.PriceRangeFrom + " - " + valuation.PriceRangeTo);
            }
            catch (ApiException e)
            {
                Debug.Print(e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://avm.enbisys.com/api

Class Method HTTP request Description
DefaultApi GetFastValuation POST /properties/getFastValuation
DefaultApi GetValuation POST /properties/getValuation

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key

  • API key parameter name: X-API-KEY

  • Location: HTTP header

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages