Sha256: 0189805171122d7a8c052791c2f6be7c13543a73afed848fd997c5d5895811d8

Contents?: true

Size: 1.87 KB

Versions: 171

Compression:

Stored size: 1.87 KB

Contents

# WebhookTest

## Example WebhookTest Object

```
{
  "code": 200,
  "message": "",
  "status": "",
  "data": "example",
  "success": true
}
```

* `code` (int64): Status HTTP code
* `message` (string): Error message
* `status` (string): Status message
* `data` (Auto): Additional data
* `success` (boolean): The success status of the webhook test
* `url` (string): URL for testing the webhook.
* `method` (string): HTTP method(GET or POST).
* `encoding` (string): HTTP encoding method.  Can be JSON, XML, or RAW (form data).
* `headers` (object): Additional request headers.
* `body` (object): Additional body parameters.
* `raw_body` (string): raw body text
* `file_as_body` (boolean): Send the file data as the request body?
* `file_form_field` (string): Send the file data as a named parameter in the request POST body
* `action` (string): action for test body
* `use_dedicated_ips` (boolean): Use dedicated IPs for sending the webhook?


---

## Create Webhook Test

```
Files::WebhookTest.create(
  url: "https://www.site.com/...", 
  method: "GET", 
  encoding: "RAW", 
  headers: {"x-test-header":"testvalue"}, 
  body: {"test-param":"testvalue"}, 
  raw_body: "test body", 
  file_as_body: true, 
  file_form_field: "upload_file_data", 
  action: "test", 
  use_dedicated_ips: true
)
```

### Parameters

* `url` (string): Required - URL for testing the webhook.
* `method` (string): HTTP method(GET or POST).
* `encoding` (string): HTTP encoding method.  Can be JSON, XML, or RAW (form data).
* `headers` (object): Additional request headers.
* `body` (object): Additional body parameters.
* `raw_body` (string): raw body text
* `file_as_body` (boolean): Send the file data as the request body?
* `file_form_field` (string): Send the file data as a named parameter in the request POST body
* `action` (string): action for test body
* `use_dedicated_ips` (boolean): Use dedicated IPs for sending the webhook?

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
files.com-1.1.103 docs/webhook_test.md
files.com-1.1.102 docs/webhook_test.md
files.com-1.1.101 docs/webhook_test.md
files.com-1.1.100 docs/webhook_test.md
files.com-1.1.99 docs/webhook_test.md
files.com-1.1.98 docs/webhook_test.md
files.com-1.1.97 docs/webhook_test.md
files.com-1.1.96 docs/webhook_test.md
files.com-1.1.95 docs/webhook_test.md
files.com-1.1.94 docs/webhook_test.md
files.com-1.1.93 docs/webhook_test.md
files.com-1.1.92 docs/webhook_test.md
files.com-1.1.91 docs/webhook_test.md
files.com-1.1.90 docs/webhook_test.md
files.com-1.1.89 docs/webhook_test.md
files.com-1.1.88 docs/webhook_test.md
files.com-1.1.87 docs/webhook_test.md
files.com-1.1.66 docs/webhook_test.md
files.com-1.1.65 docs/webhook_test.md
files.com-1.1.64 docs/webhook_test.md