SpottoAPI 1.0.4

dotnet add package SpottoAPI --version 1.0.4
NuGet\Install-Package SpottoAPI -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpottoAPI" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpottoAPI --version 1.0.4
#r "nuget: SpottoAPI, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpottoAPI as a Cake Addin
#addin nuget:?package=SpottoAPI&version=1.0.4

// Install SpottoAPI as a Cake Tool
#tool nuget:?package=SpottoAPI&version=1.0.4

Check if build is successful

SpottoAPI for Dotnet Core in C#

An unofficial .NET wrapper for the Spotto.be API.

Contributions

Have you spotted a bug or want to add a missing feature? All pull requests are welcome! Please provide a description of the bug or feature you have fixed/added. Make sure to target the latest development branch.

1. Installation

The easiest way to install is through the NuGet package.

PM> Install-Package SpottoAPI

2. Library limitations

The library has currently some limitations, only creating listings is possible. If this needs to be extended, please contact me or DIT 😉

3. Documentation

Official documentation can be found on the Spotto API documentation.

Examples

Basic Example

// Create the client
SpottoClient client = new SpottoClient("SubscriptionKey", "PartnerId", isSandbox: true);

// Create the listing
SpottoListing listing = new SpottoListing(
    new SpottoProperty() {
        Type = PropertyType.Apartment,
        SubType = PropertySubType.Penthouse,
        PurposeType = PropertyPorposeType.Unknown,
        NewBuildType = PropertyNewBuildType.NoNewBuild,
        Descriptions = new List<Description> {
            new Description(DescriptionType.Title, "NL", "Dit is een test."),
            new Description(DescriptionType.DetailedDescription, "NL", "Dit is een lange test."),
        },
        Location = new LocationInfo {
            Address = new AddressInfo {
                Street = "Ten Bos",
                StreetNumber = "11",
                MunicipalityPostalCode = "9100",
                MunicipalityName = "Sint-Niklaas",
            }
        }
    },
    new SpottoTransaction() {
        Type = TransactionType.Sale,
        AvailabilityStatusType = AvailabilityStatusType.Available,
        HidePriceDetails = false,
        ContactInfo = new ContactInfo {
            ContactReference = "D&A Vastgoed",
            ContactPerson = new ContactPerson {
                Email = "info@dnavastgoed.be",
                Name = "D&A Vastgoed",
                PhoneNumber = "03 776 19 22",
                PictureUrl = "https://dnavastgoed.be/wp-content/uploads/2020/09/Logo-7x7-PNG.png"
            }
        },
        SaleTypeInfo = new SaleTypeInfo {
            Price = 900000
        }
    },
    new SpottoResource() {
        Images = new List<Image> {
            new Image {
                DisplayOrder = 0,
                FileName = "image",
                FileType = ".png",
                Url = "https://dnavastgoed.be/wp-content/uploads/2020/09/Logo-7x7-PNG.png"
            }
        },
        PublicationInfo = new PublicationInfo {
            BrokerWebsiteUrl = "https://dnavastgoed.be/"
        }
    }
 );

//Post the listing
await client.CreatePublication(listing, "ID123");

This only contains the most basic options, there are a lot more, the documentation will get updated soon.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 207 4/8/2023
1.0.3 199 4/4/2023
1.0.2 173 4/4/2023
1.0.1 153 4/4/2023
1.0.0 197 3/19/2023