A small library to access the Immobilienscout24 Import/Export REST API using RestSharp.
IS24RestApi is available as a NuGet package.
The ImportExportClient
class has CRUD methods for all resource types and the SampleConsole
project shows a few uses.
You need to acquire OAuth credentials beforehand
(e.g. by carrying out these steps)
and put them in the config.json file that's read from the current working directory at runtime (see the included config.example.json file).
The AuthorizeAsync
method shows how to perform the OAuth authorization steps programmatically.
All API calls are carried out asynchronously and the paging call GetAsync()
for RealEstate
resources
uses Reactive Extensions to return the real estate objects both lazily and asynchronously.
The classes in the Types.generated.cs file were generated from the XSD files provided by IS24 using XmlSchemaClassGenerator. There are two dotnet-script scripts in the xsd folder to automate this process.
DownloadSchemaFiles.csx
downloads all .xsd files from here and movesmessages*.xsd
to the includes folder.GenerateClasses.csx
generates .cs files into thegenerated
folder.
Pull requests to improve are welcome :)