Skip to content
A simple Implementation to access the autoscout24 api a little easier in node.js
JavaScript
Latest commit 86366fc Sep 13, 2012 teeaich Update README.md
Failed to load latest commit information.
autoscout24
common initial commit Aug 19, 2012
tests edit comments, update last api call with test. Aug 26, 2012
README.md
package.json

README.md

autoscout24-node

A simple client implementation to access autoscout24 api for/in node.js

Installation

npm install autoscout24-node

Usage

Please consider that two of the three main 'REST Methods' are implemented.

  • findArticles
  • getLookUpData
  • getMakeModelTree

Getting Started

Before getting started make sure you put your 'developer garden' credentials in settings.js. Then just include/require autoscout24client.js and authentication.js in your project/module/code.

get the token from authentication.js

  Authentication.requestToken(function(err,token){
      // get error/token
    });

get data with query from autoscout24client.js

var query = {
      "brands":{
        "brand_id":[13]
      },
      "address":{
        "countries":{
          "country_id":null
        },
        "radius":"100",
        "zip_code":"20359",
        "zip_country_id":"D"
      },
      "kilowatt":{
        "from":110,
        "to":null
      },
      "price_public":{
        "from":4800,
        "to":null,
        "vat_type_id":null
      }
    };
    Autoscout24Client.findArticles(savedToken,query, function(err,res){
      // get error/response
    });

For a detailed Descriptions how the query should look like for successfull response take a look at the official developer garden REST api documentation.

http://www.developergarden.com/fileadmin/microsites/ApiProject/Dokumente/Dokumentation/Api_Doc_4_0/telekom-api-rest-4.0/html/as24.html

Roadmap

Include missing api method with available query

Run Tests

You can find tests for Mocha in folder tests. Just run it with:

  . Makefile

Remember to put your credentials in settings.js

Something went wrong with that request. Please try again.