Etsy API wrapper written in TypeScript. Includes types for all Etsy API endpoints.
npm install etsy-ts --save
yarn add etsy-ts
See example in examples/run.ts
Find full API v3 documentation on Etsy.
- Support for Etsy APIv2 is removed
- All v3 modules are now imported from the root of the package, e.g.
import { Etsy } from 'etsy-ts'
instead ofimport { Etsy } from 'etsy-ts/v3'
Etsy
class constructor now requiresSecurityDataStorage
instance that implementsISecurityDataStorage
interface. See a sample implementation in examples/v3/SecurityDataStorage.ts.- You should remove the refresh token logic from your code - now that's included within this client
- For methods that require oauth, now you need to pass
etsyUserId
instead ofaccessToken
. This client will useSecurityDataStorage
instance to get, refresh and saveaccessToken
for the givenetsyUserId
.
Most of the code is generated from Etsy APIv3 Swagger specs, fed to swagger-typescript-api.