2.0.14 • Published 3 years ago

@alexdee2007/etsy-ts v2.0.14

Weekly downloads
22
License
ISC
Repository
github
Last release
3 years ago

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);
})();
2.0.14

3 years ago

2.0.13

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago