fix: correct API issues found by second codex review across 14 CLIs
Fixes from thorough codex review (o3 high reasoning, 5 parallel batches): Validation fixes: - customer-io: add ID validation for customer/campaign commands, event name check - dub: fix links get to use /links/info endpoint, add --id validation - google-search-console: fix countries to use ['country'] only, add --url validation - mention-me: add --customer-id validation on referral/share/reward commands - tolt: add --id validation for affiliates get/update Auth & API fixes: - apollo: move API key from header to JSON body, fix search endpoint path - rewardful: change from Bearer to Basic auth - hotjar: split OAuth URL (unversioned) from resource URL (v2) - amplitude: wrap retention e param in JSON array - snov: change list prospects from GET to POST with JSON body - optimizely: change archive from DELETE to PATCH status=archived - google-ads: fix budget body field from camelCase to snake_case - resend: change webhook field from endpoint to url, add validation - linkedin-ads: add required campaignGroup URN, fix numeric amount types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,7 @@ async function main() {
|
||||
result = await api('POST', `/webmasters/v3/sites/${encodedSiteUrl}/searchAnalytics/query`, body)
|
||||
break
|
||||
case 'countries':
|
||||
body.dimensions = ['country', 'query']
|
||||
body.dimensions = ['country']
|
||||
result = await api('POST', `/webmasters/v3/sites/${encodedSiteUrl}/searchAnalytics/query`, body)
|
||||
break
|
||||
default:
|
||||
@@ -106,6 +106,7 @@ async function main() {
|
||||
}
|
||||
switch (sub) {
|
||||
case 'url':
|
||||
if (!args.url) { result = { error: '--url required (URL to inspect)' }; break }
|
||||
result = await api('POST', '/v1/urlInspection/index:inspect', {
|
||||
inspectionUrl: args.url,
|
||||
siteUrl: siteUrl,
|
||||
|
||||
Reference in New Issue
Block a user