You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 71f34a9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(debug): implement debug tiktok-ads raw API passthrough (#18)
Wires pipeboard debug tiktok-ads to POST /api/debug/tiktok-ads (admin-only). Adds a --method flag (GET default) and parses --params as arbitrary JSON so nested TikTok bodies work (e.g. creative portfolio create, /ad/create/). Replaces the not-implemented stub.
Copy file name to clipboardExpand all lines: cmd/debug.go
+44-5Lines changed: 44 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,9 @@ func init() {
97
97
98
98
// TikTok Ads debug
99
99
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokAdvertiserID, "advertiser-id", "", "TikTok advertiser ID (required)")
100
-
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokEndpoint, "endpoint", "", "TikTok API endpoint path (required)")
101
-
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokParams, "params", "{}", "JSON params for the request")
100
+
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokEndpoint, "endpoint", "", "TikTok API endpoint path, e.g. /creative/portfolio/list/ or /ad/create/ (required)")
101
+
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokMethod, "method", "GET", "HTTP method: GET or POST")
102
+
debugTikTokAdsCmd.Flags().StringVar(&debugTikTokParams, "params", "{}", "JSON params for the request (GET: query; POST: body)")
0 commit comments