API Requests-2.1228.1332
Required Input
- HTTP request method
- URL
Optional Input
- Parameters
- Headers
- Cookies
- Json (either in String or in File)
- Encoding options
Return Value
- Whatever that would be retuned as “Response” to Requests will be stored in String, CSV, or File (.txt or .csv)
Result Codes
0 for Response code 200s
4 for Response code 400s
5 for Response code 500s
9 for Everything else
How to set parameters
Examples
This website explains various HTTP request methods. Below graphics are showing how the code will be transposed to STU’s parameter section.
1) Case of List User
2) Case of Single User
3) Case of Single User Not Found
4) Case of Create User
Return Code
Code | Meaning |
---|---|
0 | Execution successful |
1 | Conditional Response |
3 | Redirection |
4 | Client Error |
5 | Server Error |
9 | Other Failures and Errors |