How bububa/tiktok-business works
This is a Go client SDK for the TikTok Business API, not a standalone service. The principal workflow is an application creating a configured SDK client, obtaining an access token through OAuth, calling a typed endpoint with request/model data, and receiving a decoded response. Endpoint packages expose distinct advertising, catalog, audience, tracking, and reporting domains; the shared client builds HTTP requests and handles responses. The README and sampled client source support the central request flow; other product areas are represented from documented capabilities and the repository tree, with unverified connections omitted.
Main entry points: client.go SDK Client · get.go Ad Endpoints · oauth/token.go OAuth Tokens · ttuser/token.go TikTok User OAuth
Components 18
Access and Identity
- OAuth Tokens
api/oauth/token.go - TikTok User OAuth
api/ttuser/token.go - SDK Client
core/client.go - Accounts and Apps
api/advertiser/info.go
Advertising
- Ad Endpoints
api/ad/get.go - Campaign Management
api/campaign/create.go - Ad Group Management
api/adgroup/create.go - Creative Assets
api/creative/portfolio/create.go
Business Operations
- Product Catalogs
api/catalog/product/update.go - Audience Management
api/dmp/customaudience/create.go - Business Center
api/bc/asset_get.go - Discovery and Search
api/discovery/search.go - Creator Marketing
api/tcm/creator/discover.go - Business Content
api/business/post/authorize.go
Measurement
- Performance Reports
api/report/integrated_get.go - Events and Pixels
model/event/track.go
Other components
- SDK Consumer
- TikTok Business API
Connections 19
- SDK Consumer → OAuth Tokens: requests token
README.md - SDK Consumer → TikTok User OAuth: starts authorization
README.md - SDK Consumer → SDK Client: creates client
README.md - SDK Consumer → Ad Endpoints: calls endpoint
README.md - Ad Endpoints → SDK Client: executes request
README.md - SDK Client → TikTok Business API: sends HTTP
core/client.go - TikTok Business API → SDK Client: returns response
core/client.go - SDK Client → Campaign Management
- SDK Client → Ad Group Management
- SDK Client → Creative Assets
- SDK Client → Performance Reports
- SDK Client → Product Catalogs
- SDK Client → Audience Management
- SDK Client → Business Center
- SDK Client → Accounts and Apps
- SDK Client → Discovery and Search
- SDK Client → Events and Pixels
- SDK Client → Creator Marketing
- SDK Client → Business Content