@profplum700/etsy-v3-api-client 2.5.4 → 3.0.0
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 +10 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/browser.esm.js +20 -4
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -1
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +33 -4
- package/dist/index.esm.js +20 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/node.cjs +20 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.esm.js +20 -4
- package/dist/node.esm.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ const tokens = await authHelper.getAccessToken();
|
|
|
59
59
|
// Create API client
|
|
60
60
|
const client = new EtsyClient({
|
|
61
61
|
keystring: 'your-api-key',
|
|
62
|
-
sharedSecret: 'your-shared-secret', //
|
|
62
|
+
sharedSecret: 'your-shared-secret', // REQUIRED for v3 API compliance
|
|
63
63
|
accessToken: tokens.access_token,
|
|
64
64
|
refreshToken: tokens.refresh_token,
|
|
65
65
|
expiresAt: tokens.expires_at
|
|
@@ -356,6 +356,11 @@ The package provides optimized builds for different environments:
|
|
|
356
356
|
- `getShop(shopId)` - Get shop details
|
|
357
357
|
- `getShopByOwnerUserId(userId)` - Get shop by owner user ID
|
|
358
358
|
|
|
359
|
+
#### Personalization Methods (New)
|
|
360
|
+
- `getListingPersonalizations(listingId)` - Get personalization questions for a listing
|
|
361
|
+
- `updateListingPersonalization(shopId, listingId, params)` - Create or update personalization questions
|
|
362
|
+
- `deleteListingPersonalization(shopId, listingId)` - Delete personalization
|
|
363
|
+
|
|
359
364
|
#### Listing Methods
|
|
360
365
|
- `getListing(listingId)` - Get listing details
|
|
361
366
|
- `getListingsByShop(shopId, options?)` - Get shop's listings
|
|
@@ -384,6 +389,9 @@ The package provides optimized builds for different environments:
|
|
|
384
389
|
| ShopListing | getListingsByShopReceipt | No |
|
|
385
390
|
| ShopListing | getListingsByShopReturnPolicy | No |
|
|
386
391
|
| ShopListing | getListingsByShopSectionId | No |
|
|
392
|
+
| ShopListing | getListingPersonalization | Yes |
|
|
393
|
+
| ShopListing | updateListingPersonalization | Yes |
|
|
394
|
+
| ShopListing | deleteListingPersonalization | Yes |
|
|
387
395
|
| ShopListing File | deleteListingFile | No |
|
|
388
396
|
| ShopListing File | getListingFile | No |
|
|
389
397
|
| ShopListing File | getAllListingFiles | No |
|
|
@@ -491,7 +499,7 @@ The package provides optimized builds for different environments:
|
|
|
491
499
|
```typescript
|
|
492
500
|
interface EtsyClientConfig {
|
|
493
501
|
keystring: string; // Required: Your API key
|
|
494
|
-
sharedSecret
|
|
502
|
+
sharedSecret: string; // Required: Your shared secret (from Your Apps page)
|
|
495
503
|
accessToken?: string; // User's access token
|
|
496
504
|
refreshToken?: string; // User's refresh token
|
|
497
505
|
expiresAt?: Date; // Token expiration date
|