craftzing / node-akeneo-api Goto Github PK
View Code? Open in Web Editor NEWThis is an unofficial Node client for the Akeneo PIM REST API.
Home Page: https://craftzing.github.io/node-akeneo-api/
License: MIT License
This is an unofficial Node client for the Akeneo PIM REST API.
Home Page: https://craftzing.github.io/node-akeneo-api/
License: MIT License
Hi,
import client from '@craftzing/akeneo-api';
const akeneo = client({
baseURL,
username,
password,
clientId,
secret,
// Optionally you can also pass in axiosOptions which will be passed to the Axios instance
});
console.log(await akeneo.productModel.getAll({}));
node-akeneo-api/src/http-client.ts
Line 30 in 1d73672
It seems baseURL
in documentation has to be url
, or the other way around.
Moreover you don't support trailing '/' on URL.
It could be a good improvement to support it or announce it in readme.
Thank you for making it open source :)
Before going further in my research, I wanted to validate if filtering https://api.akeneo.com/documentation/filter.html#filter-assets by the search query parameter was implemented or not.
I'd like to use that feature, and if it's missing I'd start looking into a first version of this.
Thanks
I just installed the package (version 1.0.12).
During client initialization I got this error at runtime:
Uncaught ReferenceError: Buffer is not defined
The error is raised in this line:
const base64Encoded = Buffer.from(
${clientId}:${secret}).toString("base64");
My dependencies are:
"dependencies": { "@craftzing/akeneo-api": "^1.0.12", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@types/react": "^18.2.56", "@types/react-dom": "^18.2.19", "@typescript-eslint/eslint-plugin": "^7.0.2", "@typescript-eslint/parser": "^7.0.2", "@vitejs/plugin-react": "^4.2.1", "eslint": "^8.56.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", "typescript": "^5.2.2", "vite": "^5.1.4" } }
I initialize the client in a tsx file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.