Sha256: 641ff09f729b99d8708f7d3c01809f76b16b2d19f3a0a2398afef9ac150b0672

Contents?: true

Size: 1.7 KB

Versions: 112

Compression:

Stored size: 1.7 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


---

## 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"
)
```

### 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

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
files.com-1.0.408 docs/webhook_test.md
files.com-1.0.407 docs/webhook_test.md
files.com-1.0.406 docs/webhook_test.md
files.com-1.0.405 docs/webhook_test.md
files.com-1.0.404 docs/webhook_test.md
files.com-1.0.403 docs/webhook_test.md
files.com-1.0.402 docs/webhook_test.md
files.com-1.0.401 docs/webhook_test.md
files.com-1.0.400 docs/webhook_test.md
files.com-1.0.399 docs/webhook_test.md
files.com-1.0.398 docs/webhook_test.md
files.com-1.0.397 docs/webhook_test.md
files.com-1.0.396 docs/webhook_test.md
files.com-1.0.395 docs/webhook_test.md
files.com-1.0.394 docs/webhook_test.md
files.com-1.0.393 docs/webhook_test.md
files.com-1.0.392 docs/webhook_test.md
files.com-1.0.391 docs/webhook_test.md
files.com-1.0.390 docs/webhook_test.md
files.com-1.0.389 docs/webhook_test.md