Import API From Curl
Last updated
Last updated
cURL, a widely used command-line tool, facilitates HTTP requests directly from the command line, employing a familiar syntax prevalent in the API developer community. It enables seamless interaction when testing web applications or APIs. If you have multiple cURL commands scattered across different locations.
To use a cURL API in your app, first, you have to create the API Call.
Follow the steps below to create a cURL API Call:
Select API Calls from the left Navigation Menu.
Click on the + Add button and select Import from curl.
Enter the cURL API call name.
Enter the cURL link of the service you want to access.
Adding of the cURL url and click on the Import
After that click on the Save Button to add the cURL API in your project.
To start using the API, first, go to the page where you can add it. Then, just add the API there.
Now, select the widget where you add the API and fetch the data. Then, just type 'dataSource' into the box labeled 'DataSource' in parent widget of selected widget.
Following the previous step, proceed to select the widget intended for data retrieval from the JSON file and subsequent display on the dashboard.
i.e Now, access the topic and subtopic from the JSON file utilizing the commands 'current.topic' and 'current.subtopic'.