@schally/node-akeneo-api-client 1.3.0 → 1.3.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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,13 +120,13 @@ import { AkeneoClient, Product, Category, Family } from '@schally/node-akeneo-ap
|
|
|
120
120
|
const client = new AkeneoClient({
|
|
121
121
|
baseUrl: 'https://your-akeneo-instance.com',
|
|
122
122
|
clientId: 'your-client-id',
|
|
123
|
-
|
|
123
|
+
secret: 'your-client-secret',
|
|
124
124
|
username: 'your-username',
|
|
125
125
|
password: 'your-password'
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
// TypeScript will provide full autocompletion and type checking
|
|
129
|
-
const products: Product[] = await client.products.
|
|
129
|
+
const products: Product[] = await client.products.list();
|
|
130
130
|
const category: Category = await client.categories.get('category-code');
|
|
131
131
|
```
|
|
132
132
|
|