Sha256: 584c625b23daa34d757982d65fe242c47b4204844d005c264a0d66e145882027

Contents?: true

Size: 1.69 KB

Versions: 50

Compression:

Stored size: 1.69 KB

Contents

# WebhookTest

## Example WebhookTest Object

```
{
  "code": 200,
  "message": "",
  "status": "",
  "data": "",
  "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: "false", 
  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

50 entries across 50 versions & 1 rubygems

Version Path
files.com-1.0.276 docs/webhook_test.md
files.com-1.0.275 docs/webhook_test.md
files.com-1.0.274 docs/webhook_test.md
files.com-1.0.273 docs/webhook_test.md
files.com-1.0.272 docs/webhook_test.md
files.com-1.0.271 docs/webhook_test.md
files.com-1.0.270 docs/webhook_test.md
files.com-1.0.269 docs/webhook_test.md
files.com-1.0.268 docs/webhook_test.md
files.com-1.0.267 docs/webhook_test.md
files.com-1.0.266 docs/webhook_test.md
files.com-1.0.265 docs/webhook_test.md
files.com-1.0.264 docs/webhook_test.md
files.com-1.0.263 docs/webhook_test.md
files.com-1.0.262 docs/webhook_test.md
files.com-1.0.261 docs/webhook_test.md
files.com-1.0.260 docs/webhook_test.md
files.com-1.0.259 docs/webhook_test.md
files.com-1.0.258 docs/webhook_test.md
files.com-1.0.257 docs/webhook_test.md