Asked by Tiagosiqueira on December 26, 2024
Can Twidget automate searches across public academic APIs (PubMed, arXiv, Semantic Scholar) to retrieve titles and abstracts for e‑learning use cases, possibly with an AI agent assembling queries?
Answered by Twidget
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.
Accessing JSON response fields and troubleshooting null results
To access an HTTP response, use response properties such as .status and .data, and reference fields with dot notation (e.g., response.data.fieldName). See: https://www.youtube.com/watch?v=IrY_7xnA10g
If database operations return null during endpoint tests, ensure you have Live Data enabled...
Managing a timed queue in a database array
Use scheduled Events. Create an event that runs every 60 seconds and updates the database array (remove the first item). The scheduled event can fetch the record, modify the array (shift/remove the first element), and save the updated array back to the datastore. See the scheduled events tutorial...