Get support for PrestaShop/ws-client
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
PrestaShop/ws-client
WS-CLIENT
Description
Typescript Webservice Client to use with PrestaShop Core.
TO DO :
- Typing : 2 types are required
- Readable
- Writable
PrestaShop Compatibility :
- 9
- 8
- 1.7
NodeJs compatibility :
- 18
Endpoint to implement
Endpoint | URL | Done |
---|---|---|
addresses | [] | |
carts | [] | |
cart_rules | [] | |
categories | [] | |
country | [] | |
customers | [] | |
orders | [] | |
products | [] | |
stores | [] | |
taxes | [] | |
tax_rules | [] |
Stack
- fetch
- Typescript
How to use
Set up the env file:
cp .env.dist .env
open .env
Run some code:
const client = new BaseClient({
baseURl: process.env.BASE_URL, // URL of your PrestaShop
wsKey: process.env.WS_KEY, // Key to connect to your prestashop
});
const response = await client.product.create(productData);
console.log(response.status);
console.log(response.data.product); // Maybe return type writable ??
// Error case
// Return an Exeption depending on what is the error.
// UnreachableServerException
// WrongPayloadException
// RequestTimeoutException
// InvalidCredentialsException
Build
Install dependencies:
npm install -g pnpm
pnpm install
Build the library:
pnpm build
Test the library:
pnpm test
Contributing
This library is an open source solution. Everyone is welcome and even encouraged to contribute with their own improvements!
Just make sure to follow our contribution guidelines.
Reporting issues
You can report issues here.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2