0.4.0 • Published 11 months ago

tradera-api-client v0.4.0

Weekly downloads
5
License
LGPL-3.0-only
Repository
github
Last release
11 months ago

Tradera API client

This package enables a user to use the official Tradera SOAP API from withing their JavaScript/TypeScript projects. At the moment, only a subset of the PublicService has been implemented.

Please be aware that the API may change drastically until version 1.0.0 has been reached.

Installation

npm install tradera-api-client

Usage

Make sure to set the environment variables TRADERA_APP_ID and TRADERA_APP_KEY.

Calling API methods

The Tradera API is divided into six SOAP services: BuyerService, ListingService, OrderService, PublicService, RestrictedService and SearchService. Import the one(s) you wish to use. For instance, this is how you call GetOfficalTime to retrieve the time from Tradera:

import { PublicService } from "tradera-api-client";

const publicService = new PublicService();
const officalTime = await publicService.GetOfficalTime();

Contributing

Feel free to send pull requests. The WSDL description of the SOAP API doesn't seem to be fully consistent with the actual API, so unless the inconsistencies are fixed, errors may be thrown.

0.4.0

11 months ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.3.1

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago