# aftermarketpl-api

> Package allowing access to the AfterMarket.pl API

Latest version **1.0.0** (published 2021-11-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install aftermarketpl-api
pnpm add aftermarketpl-api
yarn add aftermarketpl-api
bun add aftermarketpl-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-19 |
| First published | 2021-11-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | Michal Pleban |
| Maintainers | aftermarketpl |
| Keywords | aftermarket.pl |

## Links

- npm: https://www.npmjs.com/package/aftermarketpl-api
- Repository: https://github.com/aftermarketpl/aftermarketpl-api-node
- Homepage: https://github.com/aftermarketpl/aftermarketpl-api-node#readme
- Issues: https://github.com/aftermarketpl/aftermarketpl-api-node/issues
- npm.io page: https://npm.io/package/aftermarketpl-api

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.24.0

## Recent versions

- 1.0.0 (latest) — 2021-11-19

## README

# AfterMarket.pl API client class for Node.js

This library allows you to issue calls to the AfterMarket.pl from Node.js.

## Quick start

Install the library using `npm`:

```
npm install aftermarketpl-api
```

Create the API client object, providing your API key.
[Click here to obtain your API key.](https://www.aftermarket.pl/API/Create/)

```nodejs
const Aftermarket = require('aftermarketpl-api')
const client = new Aftermarket({
    key: '<MY API KEY>',
    secret: '<MY API SECRET>'
})
```

Call an API function and obtain a result.
[Click here to see the list of API functions.](https://json.aftermarket.pl/)

```nodejs
client.send('/domain/check', {
    'names': [ 'domain1.pl', 'domain2.pl' ]
}).then((data) => {
    // Do something with the data
}).catch((error) => {
    // Handle errors
});
```

## Details

The library uses the `axios` module to perform asynchronous calls to the API.

The returned Promise is fulfilled with the data received from the API, or rejected if an arror accurs.

---
_Source: https://npm.io/package/aftermarketpl-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
