Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Script Talk › TPF Pro ebay API access
- This topic has 5 replies, 2 voices, and was last updated 1 week ago by
Daniel Leu.
-
AuthorPosts
-
April 4, 2026 at 1:33 PM #53892
Mark MoranParticipantI’ve attempted to write an ebay posting interface to my Tap Forms Pro DB for posting items for sale off and on. I know just enough javascript to get myself in trouble. AI is sometimes a hinderence rather than a help. But it’s telling me the following. It’s recommending running a local js file because tap forms can’t access the ebay api directly?? Is it correct?
My question to claude:
can the tap forms pro script just access the ebay api directly?No — the blocker is that eBay’s API requires an Authorization: Bearer <token> header on every request, and Tap Forms Pro’s HTTP methods can only set Content-Type. There’s no way to pass custom headers:
// These are ALL the HTTP calls Tap Forms can make:
Utils.getJsonFromUrl(url)
Utils.getTextFromUrl(url)
Utils.postJsonToUrl(json, url)
Utils.postContentToUrlWithContentType(content, url, contentType) // ← only Content-Type, nothing elseeBay also requires the OAuth token refresh call to use Authorization: Basic base64(clientId:clientSecret) — also a custom header.
The local server exists purely to add those headers. It’s a thin shim:
Tap Forms → POST http://localhost:3721/post-to-ebay (no auth needed, local only)
server.js → POST https://api.ebay.com/… (adds Authorization: Bearer <token>)If Tap Forms ever adds a Utils.postWithHeaders(url, headers, body) method, you could go direct. Until then, the proxy is the only path.
April 4, 2026 at 6:01 PM #53895
Daniel LeuParticipantThere’s
Utils.makeHTTPRequest(), but there’sUtils.postContentToUrlWithHeaders()as well.-
This reply was modified 1 week, 1 day ago by
Daniel Leu.
Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricksApril 5, 2026 at 3:44 AM #53899
Mark MoranParticipantThere’s
Utils.makeHTTPRequest(), but there’sUtils.postContentToUrlWithHeaders()as well.Here’s API’s reponse:
Right, that function exists — but it only controls the Content-Type header. The third parameter is locked to content type only. You still can’t pass an Authorization: Bearer <token> header, which eBay requires on every single API call.
Here’s the gap:
// What Tap Forms lets you do:
Utils.postContentToUrlWithContentType(body, url, ‘application/json’);
// ↑ sends: Content-Type: application/json ✅
// ✗ cannot: Authorization: Bearer abc123 ❌ ← eBay blocks without this// What eBay needs on every request:
// POST https://api.ebay.com/sell/inventory/v1/inventory_item/SKU123
// Authorization: Bearer <token> ← no way to set this in Tap Forms
// Content-Type: application/jsonAnd even before that, getting the OAuth token in the first place requires:
// Token refresh call needs:
// Authorization: Basic base64(clientId:clientSecret) ← also a custom headerIf the Tap Forms API accepted an optional headers dictionary like this, it would work:
// Hypothetical — does NOT exist in Tap Forms
Utils.postContentToUrlWithContentType(body, url, ‘application/json’, {
‘Authorization’: ‘Bearer ‘ + token
});April 5, 2026 at 8:16 AM #53906
Mark MoranParticipantThat should read AI’s response not API’s. :)
April 5, 2026 at 8:19 AM #53907
Daniel LeuParticipantDid you try something like this?
const url = "..."; const headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + accessToken, }; const response = Utils.makeHTTPRequest(url, JSON.stringify(data), headers, "POST"); console.log(JSON.stringify(response,"",4));-
This reply was modified 1 week, 1 day ago by
Daniel Leu.
-
This reply was modified 1 week, 1 day ago by
Daniel Leu.
-
This reply was modified 1 week, 1 day ago by
Daniel Leu.
Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricksApril 6, 2026 at 9:39 AM #53917
Daniel LeuParticipantThat should read AI’s response not API’s. :)
And the human response is that my example works ;-)
Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks -
This reply was modified 1 week, 1 day ago by
-
AuthorPosts
You must be logged in to reply to this topic.