This plugin calls remote API.
Project description
Remote call plugin
This plugin calls remote API.
Configuration
{
"method": "post",
"url": "http://localhost:80/API",
"timeout": 30,
"headers": {
"X-Customer-Header": "Header value"
},
"cookies": {
"Cookie-Key": "Cookie value"
},
"sslCheck": true,
"body": {
"content": "{\"json\":1}",
"type": "application/json"
}
}
This configuration defines API url as POST "http://loclhost:80/API" with body {"json":1}
.
If user requires the body to be sent with GET method than body 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.
Example of valid response
{
"status": 200,
"content": "<body>",
"cookies": {
"key": "value"
}
}
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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7398ebc6576e32a0b513d7f3f1f730ee15024e84eb94456a076dd872e74a95d0 |
|
MD5 | 8ec9e362abbd56e8c1bc94a978ca54c9 |
|
BLAKE2b-256 | 1baad86260875c08ff2c9fa074be4c3e617e345fb73b2be31fd42c53404bf464 |
Close
Hashes for tracardi_remote_call-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f37ef999d62f5c4a7784e198d83177ed855794c8dff0b27ba9961da95c5d2a |
|
MD5 | 5ffbaf8e0370760864800a03cf4b8e47 |
|
BLAKE2b-256 | c07c71e52bb480098c17d9637645f942b9f299df605bf6510226fe585bb2bdc9 |