rpaframework
rpaframework copied to clipboard
RPA.HTTP difficult to use
e.g. POST request with headers and basic auth requires 4 lines of code and list and dict that are both a bit clumsy to handle with RF syntax:
&{Headers} Create Dictionary Content-Type=application/json
@{Auth} Create List [email protected] some_secret
Create Session my_session https://robocorp.zendesk.com
... headers=${Headers} auth=${Auth} verify=${TRUE}
Post Request my_session api/v2/some.json data=some data
Another vote for improving HTTP library API. E.g. uploading files is too complicated as you typically must:
- Get binary file
- Create file dictionary
- Create headers dictionary
- Create session
- Make post request
With simpler api the file loading and file dictionary could be integrated into POST request keyword.
tackle through examples https://robocorp.com/docs/development-guide/http/http-examples