Action group: Integrations
Sends an HTTP request to invoke a RESTful web service.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
REST service URL | REST service URL | Robin.String | https://authenticationtest.com/ | Yes |
Method | Request type. Default value is GET | Robin.String | GET | No |
Request body | Request body, specified as a JSON string | Robin.String | No | |
Request parameters | Query string parameters specified in the URL | Robin.Dictionary | No | |
Form parameters | HTML form parameters for the POST method | Robin.Dictionary | No | |
Authentication type | The type of authentication that will be used in the request being sent. If you do not fill in the "Authentication parameters" field, the selected "Authentication type" will be ignored. The default value is "No" | Robin.String | NTLM | No |
Authentication parameters | Authentication parameters for the request. If "Basic" or "NTLM" authentication type is selected, the dictionary must have "user" and "pass" keys containing the value of login and password, respectively. If the "Bearer Token" type is selected, the dictionary must have the "token" key with the value of the authentication token | Robin.Dictionary | key - user, value - user key - pass. value - password | No |
Request headers | Set of request headings and their values. Each key in the dictionary is a separate header | Robin.Dictionary | No | |
Selecting a proxy server | Specifies the settings of the proxy server to be used. You can use the system proxy settings specified at the OS level, or configure custom proxy settings, or connect without a proxy server. By default, the system settings are used | Robin.String | No | |
Proxy server protocol | Proxy server protocol. For example: http, https | Robin.String | No | |
Proxy server address | Host name or IP address of the proxy server | Robin.String | No | |
Proxy server port | Proxy server port | Robin.String | No | |
Proxy server login | User login to connect to the proxy server | Robin.String | user | No |
Proxy server password | User password to connect to the proxy server | Robin.Object | password | No |
Get file | Possibility to get files from the request. If "true" is selected, the "Folder path" and "File name" fields must be filled in | Robin.Boolean | true | No |
Folder path | Path to the folder where you want to save the file received during the request | Robin.FolderPath | C:\doc\img | No |
File name | Name, which will be used to name the file received when the request is executed. The name should be specified along with the extension that the file should have | Robin.String | true | No |
Overwrite | If the value is "true" and a file with the same name and extension exists in the specified folder, the new file will overwrite it. If "false", the file will not be overwritten and the action will return an error | Robin.Boolean | true | No |
Disable SSL | If the value is "true", the SSL certificate validation feature will be disabled | Robin.Boolean | true | |
Results | ||||
Response status | The status code of the response received from the web service. Returned when any method is used | Robin.String | 200 | |
Response headers | Set of headers and their values received from the web service. Returned when any method is used. If there are repeated headers in the response, there will be only one key with that header; the value of the key will be a collection containing all the values of those headers | Robin.Dictionary | ||
Response body | The body of the response received from the web service, in raw format. Returned when any method is used | Robin.String | ||
ID | Identifier value from the "Id" header received from the web service. Returned only when using the "POST" method | Robin.String | ||
Location | Value from the "Location" header received from the web service. Makes sense for statuses 201, 3xx and only for POST method | Robin.String |
Read more about REST.
Send a GET request to https://authenticationtest.com/HTTPAuth/ , saving the result of the response to a json file.
Use the "Send request" action.
The "Endpoint URL" field is the address to connect to. More detailed information about the method can be found at the following link: https://authenticationtest.com/HTTPAuth/.
The "Method" field - in our case it is necessary to specify the GET value.
"Get file" field - it is necessary to check the checkbox if necessary. It is used when it is necessary to receive a file from the service. The whole response from the service will be written to a separate file.
The "Path to file" and "File name" fields - must be filled in if the checkbox in the "Get file" field is checked. In the "File name" field it is necessary to specify the extension.
Result
The program robot completed successfully. A .json file with the response from the service was saved.
Send a GET request to https://dadata.ru/api/find-party/ , saving the result of the response to a json file.
Use the "Send request" action.
The "Endpoint URL" field is the address to connect to. More detailed information about the method can be found at the following link: https://dadata.ru/api/find-party/.
The "Method" field - in our case it is necessary to specify the GET value.
"Get file" field - it is necessary to check the checkbox if necessary. It is used when it is necessary to receive a file from the service. The whole response from the service will be written to a separate file.
The "Path to file" and "File name" fields - must be filled in if the checkbox in the "Get file" field is checked. In the "File name" field it is necessary to specify the extension.
Result
The program robot completed successfully. A .json file with the response from the service was saved.
Send a POST request to the http://shop.bugred.ru/api/items/search/ service to retrieve actual product data and parse the response from the service, saving the result of the response to a .txt file.
Use the "Send request" action.
Move the "Send request" action to the workspace and set its parameters.
All other fields are irrelevant to the meaning of the request and its format. The fields starting from " Proxy server settings" and ending with the field "The password to the proxy server" are all fields that are related to proxy server configuration, if it is required. In our case, there is no proxy server.
"Get file" field - it is necessary to check the checkbox if necessary. It is used when it is necessary to receive a file from the service. The whole response from the service will be written to a separate file.
The "Path to file" and "File name" fields - must be filled in if the checkbox in the "Get file" field is checked. In the "File name" field it is necessary to specify the extension.
The "Overwrite" field is necessary in case this folder already contains a file with the same name and extension.
When launching the robot, you need to click on the "Start" button in the top panel.
The robot completed successfully. The response from the service is parsed by the robot.
It is necessary to send rest-request to the service https://dadata.ru/ to get actual data about the organization and parse the response from the service.
The solution shows how to correctly fill in the parameters for a particular task, as well as other parameters are considered.
Use the "Send request" action. The entire workflow is shown in the robot's flowchart rest-zapros.robin-source .
Transfer the "Send request" action to the workspace and customize its parameters.
The robot completed successfully. The response from the service is parsed by the robot.