Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipfans/tiktok
Go SDK for Tiktok Shop Open Platform
https://github.com/ipfans/tiktok
tiktok tiktok-api tiktok-sdk
Last synced: 22 days ago
JSON representation
Go SDK for Tiktok Shop Open Platform
- Host: GitHub
- URL: https://github.com/ipfans/tiktok
- Owner: ipfans
- License: mit
- Created: 2021-12-17T10:20:32.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T01:57:07.000Z (over 1 year ago)
- Last Synced: 2024-06-20T16:51:34.346Z (5 months ago)
- Topics: tiktok, tiktok-api, tiktok-sdk
- Language: Go
- Homepage:
- Size: 363 KB
- Stars: 24
- Watchers: 7
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiktok
[![Go Reference](https://pkg.go.dev/badge/github.com/ipfans/tiktok-sdk.svg)](https://pkg.go.dev/github.com/ipfans/tiktok-sdk)
[![Go Report Card](https://goreportcard.com/badge/github.com/ipfans/tiktok-sdk)](https://goreportcard.com/report/github.com/ipfans/tiktok-sdk)
[![build](https://github.com/ipfans/tiktok/actions/workflows/ci.yml/badge.svg)](https://github.com/ipfans/tiktok/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/ipfans/tiktok/badge.svg?branch=master)](https://coveralls.io/github/ipfans/tiktok?branch=master)Go SDK for Tiktok Shop Open Platform.
## Feature
- [x] Authentication
- [x] Get your auth code url
- [x] Use auth code to get access_token
- [x] Refresh your access token
- [ ] Webhook
- [x] Order API
- [x] GetOrderList
- [x] GetOrderDetail
- [x] ShipOrder
- [x] Fulfillment API
- [x] SearchPreCombinePkg
- [x] ConfirmPreCombinePkg
- [x] RemovePackageOrder
- [x] GetPackagePickupConfig
- [x] ShipPackage
- [x] SearchPackage
- [x] GetPackageDetail
- [x] GetPackageShippingInfo
- [x] UpdatePackageShippingInfo
- [x] GetPackageShippingDocument
- [x] VerifyOrderSplit
- [x] ConfirmOrderSplit
- [x] Logistics API
- [x] GetShippingInfo
- [x] UpdateShippingInfo
- [x] GetShippingDocument
- [x] GetWarehouseList
- [x] GetShippingProvider
- [x] Product API
- [x] GetCategory
- [x] GetAttribute
- [x] GetCategoryRule
- [x] GetBrand
- [x] UploadImg
- [x] UploadFile
- [x] CreateProduct
- [x] EditProduct
- [x] GetProductList
- [x] GetProductDetail
- [x] UpdatePrice
- [x] UpdateStock
- [x] DeactivateProducts
- [x] DeleteProducts
- [x] RecoverProduct
- [x] ActivateProduct
- [x] Shop API
- [x] GetAuthorizedShop
- [x] Finance API
- [x] SearchSettlements
- [x] GetOrderSettlements
- [x] SearchTransactions
- [x] Reverse Order API
- [x] ConfirmReverse
- [x] RejectReverse
- [x] GetReverseList
- [x] GetReverseReason### TODO
- [ ] All Feature supports
- [ ] Integraion tests## API Call Flow
https://bytedance.feishu.cn/docs/doccnZ15f4vPK4qOOBTKhgc2xNh
## HOWTO Contribuate
Install [`taskfile`](https://taskfile.dev) before you start.
### Setup Intergration Environment Variables
edit `.env` file in root directory:
```env
APPKEY=
APPSECRET=
AK=
RK=
OPENID=
SELLER=
```
### Run Tests```bash
task # run tests.
task integration # run integration tests.
```If env is not setup, all integration tests will be skipped.