@autoapicom/client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# auto-api-client-typescript
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.com/package/@autoapicom/client)
|
|
4
|
+
[](https://npmjs.com/package/@autoapicom/client)
|
|
5
|
+
[](LICENSE)
|
|
6
6
|
|
|
7
7
|
TypeScript client for the [auto-api.com](https://auto-api.com) car listings API. Zero dependencies — uses the built-in `fetch`.
|
|
8
8
|
|
|
@@ -11,13 +11,13 @@ Search and filter offers across 8 marketplaces (encar, mobile.de, autoscout24, c
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @
|
|
14
|
+
npm install @autoapicom/client
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import { Client } from '@
|
|
20
|
+
import { Client } from '@autoapicom/client';
|
|
21
21
|
|
|
22
22
|
const client = new Client('your-api-key');
|
|
23
23
|
```
|
|
@@ -67,7 +67,7 @@ const info = await client.getOfferByUrl('https://encar.com/dc/dc_cardetailview.d
|
|
|
67
67
|
### Error handling
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
|
-
import { Client, AuthError, ApiError } from '@
|
|
70
|
+
import { Client, AuthError, ApiError } from '@autoapicom/client';
|
|
71
71
|
|
|
72
72
|
try {
|
|
73
73
|
const offers = await client.getOffers('encar', { page: 1 });
|
|
@@ -98,8 +98,8 @@ try {
|
|
|
98
98
|
|
|
99
99
|
| Language | Package |
|
|
100
100
|
|----------|---------|
|
|
101
|
-
| PHP | [
|
|
102
|
-
| Python | [
|
|
101
|
+
| PHP | [autoapi/client](https://github.com/autoapicom/auto-api-php) |
|
|
102
|
+
| Python | [autoapicom-client](https://github.com/autoapicom/auto-api-python) |
|
|
103
103
|
| Go | [auto-api-go](https://github.com/autoapicom/auto-api-go) |
|
|
104
104
|
| C# | [AutoApi.Client](https://github.com/autoapicom/auto-api-dotnet) |
|
|
105
105
|
| Java | [auto-api-client](https://github.com/autoapicom/auto-api-java) |
|
package/package.json
CHANGED