This plugin calls remote API.
Project description
Remote call plugin
This plugin calls remote API.
Configuration
{
"method": "get",
"url": "http://localhost:80/API",
"timeout": 30,
"headers": {
"X-Customer-Header": "Header value"
},
"cookies": {
"Cookie-Key": "Cookie value"
},
"sslCheck": true
}
This configuration defines API url as "http://loclhost:80/API".
Payload
Payload for this plugin defines a JSON data to be sent.
If user requires this payload to be sent with GET method than payload will be squashed to represent keys and values.
For example this JSON:
{
"payload": {
"mobile": "android"
},
"version": [10,11]
}
Will be flattened to parameters:
payload.mobile=android&version=10&verison=11
Result
This plugin returns either the response (on response port) or and error on error port.
Valid response is:
{
"status": 200,
"content": {
... response as json
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tracardi-remote-call-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76cfe824b1e9a8446238d5bb4088337abbe716821fed17bc52899d4a8001620 |
|
MD5 | 19cf8ac1e1fc18c6cf2ce0f406ada64b |
|
BLAKE2b-256 | ebb77a99f3c328af3887526336c5352a801e4bf64cab15ebb7a5e799a69c5caf |
Close
Hashes for tracardi_remote_call-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774b0549384435fcb4b370013f5d3a228033a4f97a0b08ed3d91c102f4b3f041 |
|
MD5 | 059d68ee19c34bf1ea37b4f3b2544550 |
|
BLAKE2b-256 | 771f46013e3430a4f4ffa3ed58c10122194dc1c2783ea844006c99e4b68a862f |