Sha256: caf07e86ec9fb8a2e54fa171cb8ae35b315a93f47f065f16a792bcc77cb7df7c

Contents?: true

Size: 1.85 KB

Versions: 85

Compression:

Stored size: 1.85 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", 
  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

85 entries across 85 versions & 1 rubygems

Version Path
files.com-1.1.148 docs/webhook_test.md
files.com-1.1.147 docs/webhook_test.md
files.com-1.1.146 docs/webhook_test.md
files.com-1.1.145 docs/webhook_test.md
files.com-1.1.144 docs/webhook_test.md
files.com-1.1.143 docs/webhook_test.md
files.com-1.1.142 docs/webhook_test.md
files.com-1.1.141 docs/webhook_test.md
files.com-1.1.140 docs/webhook_test.md
files.com-1.1.139 docs/webhook_test.md
files.com-1.1.138 docs/webhook_test.md
files.com-1.1.137 docs/webhook_test.md
files.com-1.1.136 docs/webhook_test.md
files.com-1.1.135 docs/webhook_test.md
files.com-1.1.134 docs/webhook_test.md
files.com-1.1.133 docs/webhook_test.md
files.com-1.1.132 docs/webhook_test.md
files.com-1.1.131 docs/webhook_test.md
files.com-1.1.130 docs/webhook_test.md
files.com-1.1.129 docs/webhook_test.md