Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Getting started

Fabian Mielke edited this page Jul 18, 2014 · 4 revisions

Creating the Java-REST-API client is straight forward and starts with the creation of the Is24Api object..

Is24Api api = new IS24ApiImpl();

Next, you need to specify a proxy host and port, if needed.

api.setProxyHost("myproxyhost");

api.setProxyPort(12345);

Now, set the consumer key and the consumer secret of your aplication an define the URL to the REST API. This example connects the the the IS24 Sandbox. api.init("myConsumerKey", "myConsumerSecret", "http://rest.sandbox-immobilienscout24.de/restapi/api");

Sign in with the user's credentials you retrieved from the OAUTH process. All following calls are automatically signed in.

api.signIn("UserAccesstoken", "UserAccesssecret");

Just call a method from the API.

api.getAllRealestateIds("myUsername");

If you only want to access the signed in users data just omit the username. api.getAllRealestateIds();

Clone this wiki locally