Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

fix: correct Adobe Analytics missing header and Clearbit auth method

Corey Haines8ce007c983c0
diff --git a/tools/clis/adobe-analytics.js b/tools/clis/adobe-analytics.js
index 66149a5..a3a19bc 100755
--- a/tools/clis/adobe-analytics.js
+++ b/tools/clis/adobe-analytics.js
@@ -13,13 +13,14 @@ const BASE_URL = `https://analytics.adobe.io/api/${COMPANY_ID}`
async function api(method, path, body) {
if (args['dry-run']) {
- return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { 'Authorization': '***', 'x-api-key': '***', 'Content-Type': 'application/json' }, body: body || undefined }
+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { 'Authorization': '***', 'x-api-key': '***', 'x-proxy-global-company-id': COMPANY_ID, 'Content-Type': 'application/json' }, body: body || undefined }
}
const res = await fetch(`${BASE_URL}${path}`, {
method,
headers: {
'Authorization': `Bearer ${ACCESS_TOKEN}`,
'x-api-key': CLIENT_ID,
+ 'x-proxy-global-company-id': COMPANY_ID,
'Content-Type': 'application/json',
},
body: body ? JSON.stringify(body) : undefined,
diff --git a/tools/clis/clearbit.js b/tools/clis/clearbit.js
index 2f1206b..e0e9683 100755
--- a/tools/clis/clearbit.js
+++ b/tools/clis/clearbit.js
@@ -8,13 +8,14 @@ if (!API_KEY) {
}
async function api(method, baseUrl, path, body) {
+ const auth = 'Basic ' + Buffer.from(`${API_KEY}:`).toString('base64')
if (args['dry-run']) {
return { _dry_run: true, method, url: `${baseUrl}${path}`, headers: { 'Authorization': '***', 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: body || undefined }
}
const res = await fetch(`${baseUrl}${path}`, {
method,
headers: {
- 'Authorization': `Bearer ${API_KEY}`,
+ 'Authorization': auth,
'Content-Type': 'application/json',
'Accept': 'application/json',
},