Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexgenovese/prestashop-api-nodejs
Prestashop 1.7.x Node.js Rest client
https://github.com/alexgenovese/prestashop-api-nodejs
nodejs nodejs-api prestashop rest rest-api
Last synced: 14 days ago
JSON representation
Prestashop 1.7.x Node.js Rest client
- Host: GitHub
- URL: https://github.com/alexgenovese/prestashop-api-nodejs
- Owner: alexgenovese
- License: mit
- Created: 2021-04-28T16:31:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T14:02:11.000Z (11 months ago)
- Last Synced: 2024-10-17T21:43:55.355Z (21 days ago)
- Topics: nodejs, nodejs-api, prestashop, rest, rest-api
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Prestashop 1.7.x REST client](https://github.com/alexgenovese/prestashop-api-nodejs)
[![NPM version](https://img.shields.io/npm/v/prestashop-api-nodejs?style=flat-square)](https://www.npmjs.com/package/prestashop-api-nodejs)
[![NPM downloads](https://img.shields.io/npm/dm/prestashop-api-nodejs?style=flat-square)](https://www.npmjs.com/package/prestashop-api-nodejs)
[![NPM license](https://img.shields.io/npm/l/prestashop-api-nodejs?style=flat-square)](https://www.npmjs.com/package/prestashop-api-nodejs)
[![Travis](https://img.shields.io/travis/com/alexgenovese/prestashop-api-nodejs/master?style=flat-square)](https://travis-ci.com/alexgenovese/prestashop-api-nodejs.svg?branch=main)This Node.js library enables JavaScript applications to communicate with Prestashop 1.7.x sites using their REST API.
## Installation
The library can be installed using the Npm package manager:
```
npm i prestashop-api-nodejs --save
```## Usage
The code sample below shows the usage of the library:
```javascript
var Prestashop = require('prestashop-api-nodejs');var options = {
url: 'prestashop.local',
key: ''
};var client = new Prestashop(options);
await client.get({
resource: 'customers',
output_format: 'JSON'
})
```