Skip to main content

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

tracardi-remote-call-0.1.4.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

tracardi_remote_call-0.1.4-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page