cURL Import

Studio has a feature that lets you configure Rest API by auto-filling all the API information from client URL request. It comes very handy when you have a cURL request, you just need to paste it, and will populate all information given in cURL data for example, added authorization, the request method, headers, parameters, etc.

Importing cURL is highly portable and Studio provides a section to Import cURL. This helps with the quick configuration of the Rest API with added authorization, the request method, headers, parameters, and more.

Using – Import cURL feature

Go to the Studio account, then add a connector of Rest API.

In the configuration window, there is an accordion section for Import cURL.

You can see inside the placeholder a light-shaded cURL format.

We will be using the Import cURL feature to autofill the respected fields using this cURL request to analyze the effect during REST API configuration:

curl --location --request POST 'https://api.twitter.com/1.1/lists/create.json?name=Souleh&mode=private' \ 
--header 'Authorization: OAuth oauth_consumer_key="nuh7Ahpf0aR3zJQ9X7UGP5MBv",oauth_token="918333537975013378-AUf1HmV63xgTNp2WEPsCatQ3MJwFRk0",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1681195473",oauth_nonce="OL2cxxND4Ti",oauth_version="1.0",oauth_signature="hGcu2QGi8CQewLmjm%2Bl8JQ7OQgE%3D"' 

The above cURL has a POST method, with added header and query string parameters.
This cURL will have an effect:

Response:

cURL Import feature Availability

cURL Import – Add API

In the Connector List, right beside the configured REST API connector, you can find + **Add API**.

image

Here we can use cURL to add a sub-API to the configured API connector.