https://github.com/watchdg/node-ecwid
https://github.com/watchdg/node-ecwid
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/watchdg/node-ecwid
- Owner: WatchDG
- License: mit
- Created: 2020-10-03T19:48:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-25T18:43:38.000Z (over 5 years ago)
- Last Synced: 2025-02-23T01:37:24.364Z (over 1 year ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-ecwid
## install
```shell
npm install ecwid
# or
yarn add ecwid
```
## example
```ts
import {Ecwid} from "ecwid";
(async () => {
const accessToken = 'secret_xxx';
const storeId = 1;
const ecwid = new Ecwid(storeId, accessToken);
const storeProfile = (await ecwid.getStore()).unwrap();
console.log(storeProfile);
})();
```