Asked by Tushar on December 8, 2024
I tried to return data in a custom JSON object and referenced $data.EmployeeName, but the output contained the literal string "$data.EmployeeName" rather than the value. How do I return a field value from a single row in a JSON response?
Answered by Twidget
Make sure you reference variables using the proper variable type (not as literal text). Use the platform variable reference (the variable picker/type) so the JSON template injects the actual value rather than a literal string.
Triggering Tarvent email from WordPress lead capture
Yes. Create an API endpoint in Twidget that calls Tarvent’s API to send the email. Configure your WordPress form to call the Twidget endpoint on submit to start that workflow.
Automating searches across public academic APIs
Yes. Twidget can integrate with public APIs like PubMed and Semantic Scholar to run dynamic queries and retrieve titles and abstracts. You can also integrate AI models to assemble queries and orchestrate retrieval and processing workflows.
Securing an existing endpoint with Bearer token authorization
You can update an endpoint’s security settings after creation. Open the endpoint’s options menu (top‑right) and choose "Update endpoint" to add Bearer token (or other) authentication — there’s no need to recreate the endpoint.
Header name case sensitivity
There is no requirement to force header names to lowercase in the API client. You can enter headers with any casing; the client accepts the header names you provide.
Scheduled CSV downloads and automated processing
Yes. Use Twidget’s Events feature to schedule CSV downloads. Build commands to fetch the CSV text, parse and process it (rename/exclude columns, transform values), and then send the processed data to the target webshop via HTTP requests.