/tiktok-1

Go SDK for Tiktok Shop Open Platform

Primary LanguageGoMIT LicenseMIT

tiktok

Go Reference Go Report Card build Coverage Status

Go SDK for Tiktok Shop Open Platform.

Feature

  • Authentication
    • Get your auth code url
    • Use auth code to get access_token
    • Refresh your access token
  • Webhook
  • Order API
    • GetOrderList
    • GetOrderDetail
    • ShipOrder
  • Fulfillment API
    • SearchPreCombinePkg
    • ConfirmPreCombinePkg
    • RemovePackageOrder
    • GetPackagePickupConfig
    • ShipPackage
    • SearchPackage
    • GetPackageDetail
    • GetPackageShippingInfo
    • UpdatePackageShippingInfo
    • GetPackageShippingDocument
    • VerifyOrderSplit
    • ConfirmOrderSplit
  • Logistics API
    • GetShippingInfo
    • UpdateShippingInfo
    • GetShippingDocument
    • GetWarehouseList
    • GetShippingProvider
  • Product API
    • GetCategory
    • GetAttribute
    • GetCategoryRule
    • GetBrand
    • UploadImg
    • UploadFile
    • CreateProduct
    • EditProduct
    • GetProductList
    • GetProductDetail
    • UpdatePrice
    • UpdateStock
    • DeactivateProducts
    • DeleteProducts
    • RecoverProduct
    • ActivateProduct
  • Shop API
    • GetAuthorizedShop
  • Finance API
    • SearchSettlements
    • GetOrderSettlements
    • SearchTransactions
  • Reverse Order API
    • ConfirmReverse
    • RejectReverse
    • GetReverseList
    • GetReverseReason

TODO

  • All Feature supports
  • Integraion tests

API Call Flow

https://bytedance.feishu.cn/docs/doccnZ15f4vPK4qOOBTKhgc2xNh

HOWTO Contribuate

Install taskfile before you start.

Setup Intergration Environment Variables

edit .env file in root directory:

APPKEY=<app id for tiktok>
APPSECRET=<app secret for tiktok>
AK=<access token>
RK=<refresh token>
OPENID=<seller's openid>
SELLER=<seller's name>

Run Tests

task  # run tests.
task integration # run integration tests.

If env is not setup, all integration tests will be skipped.