I’m thrilled to introduce ApiUtils, a powerful extension that enables seamless API interactions. Whether you’re sending form data, uploading files, or handling custom headers, this extension simplifies HTTP requests with ease.
Key Features:
Send multipart/form-data requests with form data and file uploads
Event-driven response handling with detailed response code and content
Supports dynamic form fields and optional file inclusion
Perfect for integrating seamless API communication and file uploads in your app with minimal effort!
Specifications
Package: com.syntex.apiutils
Size: 9.35 KB
Version: 1.1
Minimum API Level: 14
Updated On: 2025-09-10T18:00:00Z
Built & documented using: FAST v4.3.2
Event:
ApiUtils has total 1 event.
ResponseReceived
Triggered when a response is received. Returns response code, content, and URL.
Parameter | Type |
---|---|
responseCode | number |
responseContent | text |
url | text |
Methods:
ApiUtils has total 2 methods.
SendFormRequest
Sends a multipart/form-data request with form fields and an optional file.
Parameter | Type |
---|---|
url | text |
formData | dictionary |
filePath | text |
headers | dictionary |
SendFileRequest
Uploads a file using multipart/form-data encoding.
Parameter | Type |
---|---|
url | text |
filePath | text |
headers | dictionary |
Example:
we can post form like :
Why ApiUtils Extension is Better than Web Component
1. Native Multipart/Form-Data Support
- The Web Component does not natively support multipart/form-data requests.
- extension directly handles:
- Form fields (
YailDictionary
) - File uploads (
filePath
) - Custom headers (
Authorization
,Content-Type
, etc.)
- Form fields (
- This makes it ideal for uploading images, videos, or any other files — something that is very limited or complex in the default Web component.
Download the extension:
com.syntex.apiutils.aix (9.4 KB)
If you, as a user, feel that some feature is missing or you want a new function added, just share your ideas. Future updates will be based on community feedback, so you can shape how this extension grows.
Do
n’t Quit
If you like it, leave a