Asked by Sant on July 22, 2024
How can I connect a marketplace to my WooCommerce website using Twidget?
Answered by Twidget
Integrate WooCommerce’s API with your Twidget API. Twidget can connect to multiple websites — there’s no inherent limit to how many sites you can connect.
Referencing function input values
Use the Concat command to combine text with an input variable (e.g., "Hi there, " + NAME).
Per‑user data access and authentication
Yes. Add a field to your datastore to store the user's _id when saving data. Then filter GET, PUT, and DELETE operations so they only affect records that match the authenticated user's id. This enforces per‑user access control.
Custom functions, password validation, and data aggregation
You can create reusable custom functions through the no‑code builder. These functions can perform validations such as password complexity checks.
Data returned from the datastore can be manipulated and aggregated as needed within your endpoints or functions.
See the custom functions t...
Pushing game results between non‑WordPress and WordPress sites
Yes, if both Site A and Site B expose APIs. Use Twidget to retrieve results from Site A and push them to Site B’s API. You can configure an event to poll periodically or have Site A call your Twidget endpoint to trigger the update in real time.
Saving HTTP response images into the database
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.