Asked by Gabriel on November 22, 2024
How can I call an external API that returns an image (e.g., AbstractAPI screenshot), save the response in my database, and store a copy of the image file in Twidget?
Answered by Twidget
Follow the tutorial for sending an HTTP request and retrieving image data: https://www.youtube.com/watch?v=IrY_7xnA10g&t=1s
Use the Upload File command to save the image bytes into the datastore.
Aggregating events from multiple sources into a calendar
Yes. Twidget can aggregate events from platforms whose APIs are accessible (Google Calendar, Meetup, Facebook, etc.) and serve that data to your website or event plugin.
Outputting custom JSON and referencing row values
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.