Skip to content

Commit

Permalink
docs(readme): add ghn command
Browse files Browse the repository at this point in the history
  • Loading branch information
lamngockhuong committed Dec 19, 2023
1 parent 3a035ab commit 666ad55
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:

### Dev

#### Setting
**Setting:**

- ENV:

Expand All @@ -41,7 +41,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
npm run cli -- setting env -k KEY_ABC -v value_xyz
```

**Kiotviet:**
**GHTK:**

- Token:

Expand All @@ -57,6 +57,34 @@ npm run cli -- ghtk token -s eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6xxxxxxx
npm run cli -- ghtk get -c 123456789
```

**GHN:**

- Token:

```bash
# Save token into .env
npm run cli -- ghn token -s xxxxxxxxxxxxxxxxxxxxxxxx
```

- Orders:

```bash
# Get order by code
npm run cli -- ghn get -c EE123456789VN

# Get orders by date
npm run cli -- ghn get -d 2023-02-20

# Get orders from the date to current date
npm run cli -- ghn get -f 2023-02-20

# Get orders from the date to other date
npm run cli -- ghn get -f 2023-02-20 -t 2023-02-23

# Get orders from current date to the date
npm run cli -- ghn get -t 2023-02-26
```

**VNPost:**

- Token:
Expand Down

0 comments on commit 666ad55

Please sign in to comment.