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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tracardi-remote-call-0.6.0.tar.gz.
File metadata
- Download URL: tracardi-remote-call-0.6.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7398ebc6576e32a0b513d7f3f1f730ee15024e84eb94456a076dd872e74a95d0
|
|
| MD5 |
8ec9e362abbd56e8c1bc94a978ca54c9
|
|
| BLAKE2b-256 |
1baad86260875c08ff2c9fa074be4c3e617e345fb73b2be31fd42c53404bf464
|
File details
Details for the file tracardi_remote_call-0.6.0-py3-none-any.whl.
File metadata
- Download URL: tracardi_remote_call-0.6.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40f37ef999d62f5c4a7784e198d83177ed855794c8dff0b27ba9961da95c5d2a
|
|
| MD5 |
5ffbaf8e0370760864800a03cf4b8e47
|
|
| BLAKE2b-256 |
c07c71e52bb480098c17d9637645f942b9f299df605bf6510226fe585bb2bdc9
|