Asked by tien97 on December 3, 2024
How can I set a custom HTTP status response for an endpoint output?
Answered by Twidget
Successful responses default to HTTP 200. Use the validate function to detect invalid input and throw an error — that will return an appropriate non‑200 status code. See the linked tutorial for details.
https://www.youtube.com/watch?v=FAbQP37ImUI
GDPR compliance and custom endpoint domains
Yes — Twidget is GDPR compliant.
We are working on adding support for custom domains (CNAME) for endpoints.
Using Twidget as an API proxy
Yes. Call the third‑party API from a Twidget endpoint and return the response to your customers — this effectively proxies the third‑party service.
Parsing XML from emails and pushing to Firebase
We currently do not have an XML parser; Twidget works with JSON. You can, however, push data into Firebase from Twidget if the data is in JSON or you convert it to JSON first.
Collecting website visitor info and sending to Google Sheets
You can capture request header information such as User‑Agent, device, browser, country, and other values available from the HTTP request. You can then write that data to Google Sheets via their API or using Twidget’s connector commands.
Simple authentication with a single secret key
Twidget supports token‑based authentication and provides tutorials on usage. You must first generate an authentication token (via a login request); once issued, that token can be reused for subsequent requests. There is no way to bypass the initial token generation step entirely.
See tutori...