Repository navigation
Add REST client and rework Meta Ads debug command - #2
Merged
Merged
Conversation
- Add internal/client/rest.go with a REST API client for non-MCP endpoints - Rework meta-ads debug to use REST POST to /api/debug/meta-ads with --path, --method, --params, and --page-id flags - Add getWebAPIURL() for the main pipeboard.co domain (vs MCP subdomain) - Stub out Google Ads and TikTok debug commands (not yet server-side)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RESTClient(internal/client/rest.go) for calling Pipeboard REST API endpoints (vs. MCP JSON-RPC)debug meta-adsto use the REST client, posting to/api/debug/meta-adswith--path,--method,--params, and--page-idflagsgetWebAPIURL()helper in root.go for the mainpipeboard.codomain (configurable viaPIPEBOARD_WEB_URLenv var)Test plan
pipeboard debug meta-ads --path "me/adaccounts?fields=id,name"with a valid token--paramsJSON parsing and--page-idflag workdebug google-adsanddebug tiktok-adsreturn "not yet implemented" errorsPIPEBOARD_WEB_URLenv var override works