@alexdee2007/etsy-ts
TypeScript icon, indicating that this package has built-in type declarations

2.0.14 • Public • Published

etsy-ts

Most of the code in this package is generated by etsy-api-scrapper.

See Etsy API reference for detailed info on methods and types you can find in this wrapper.

Installation:

npm install etsy-ts --save

Usage:

import {User, Shop, Listing, IUser, IShop, IListing} from "etsy-ts";

(async () => {
    //get user, then user's shop, then shop's listings
    let user = (await User.getUser<IUser>({
        //add your api_key here
        user_id: ["rptr"]
    })).results[0];

    let shop = (await Shop.findAllUserShops<IShop>({
        user_id: user.login_name
    })).results[0];

    let listings = (await Listing.findAllShopListingsActive<IListing>({
        shop_id: shop.shop_id
    })).results;

    console.log("User:", user);
    console.log("Shop:", shop);
    console.log("Listings:", listings);
})();

Package Sidebar

Install

npm i @alexdee2007/etsy-ts

Weekly Downloads

4

Version

2.0.14

License

ISC

Unpacked Size

554 kB

Total Files

180

Last publish

Collaborators

  • alexdee2007