# README
Go API client for openapi
This is api for AVM (automated valuation machine)
Overview
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.3
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Installation
go get "github.com/Enbisys/avmGo"
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
- AdditionalFeatures
- BuiltForm
- EnergyEfficiency
- EnergyRating
- FloorLevel
- LeaseholdOrFreehold
- NewOrResale
- Problem
- PropertyFeatures
- PropertyType
- RequiredFeatures
- RoofInsulation
- RoofType
- Valuation
- ValuationPriceDistribution
- WallInsulation
- WallType
- WindowsGlazingType
Example
package main
import (
"context"
"fmt"
"github.com/Enbisys/avmGo"
)
func main() {
additionalFeatures := &avm.AdditionalFeatures{
RoofInsulation: avm.ROOF_INSULATION_PARTIAL,
}
requiredFeatures := &avm.RequiredFeatures{
Postcode: "b1 1TB",
NewOrResale: avm.NEW_OR_RESALE_RESALE,
FloorLevel: avm.FLOOR_LEVEL_FLOOR_5,
TotalFloorAreaInSqf: 200,
PropertyType: avm.PROPERTY_TYPE_TERRACED_HOUSE,
NumberOfRooms: 3,
}
propertyFeatures := avm.PropertyFeatures{
AdditionalFeatures: *additionalFeatures,
RequiredFeatures: *requiredFeatures,
}
config := avm.NewConfiguration()
config.AddDefaultHeader("X-API-KEY", "SET YOUR TOKEN HERE!")
r, _, _ := avm.NewAPIClient(config).DefaultApi.GetFastValuation(context.Background(), propertyFeatures)
fmt.Println(r)
}
Author
enbisys.com