# social/utils/tiktok.py class TikTokConstants: # Business API Base URL (v1.3 is current stable) BASE_URL = "https://business-api.tiktok.com/open_api/v1.3/" # Scopes: Must match your App configuration in TikTok Business Center # Needs permission for Ads and Comments SCOPES = "user.info.basic,ad.read,comment.manage" ENDPOINTS = { # Auth portal for Business accounts "AUTH": "https://business-api.tiktok.com/portal/auth", # Token exchange "TOKEN": "oauth2/access_token/", # To get advertiser details "USER_INFO": "user/info/", # To fetch Ads (which act as our 'Content') "AD_LIST": "ad/get/", # To list comments on Ads "COMMENT_LIST": "comment/list/", # To reply to comments on Ads "COMMENT_REPLY": "comment/reply/", } #TikTok Business/Marketing API. This implementation strictly supports Ad Comments (Paid Ads), # as organic video comment management is not supported by the official API.