Sha256: 4afc6c941f2e218d6531e8eff577c2e8baaa8d936017d5f6aea05df3ce2dfdd6

Contents?: true

Size: 1.68 KB

Versions: 55

Compression:

Stored size: 1.68 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`: 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

55 entries across 55 versions & 1 rubygems

Version Path
files.com-1.0.246 docs/webhook_test.md
files.com-1.0.245 docs/webhook_test.md
files.com-1.0.244 docs/webhook_test.md
files.com-1.0.243 docs/webhook_test.md
files.com-1.0.242 docs/webhook_test.md
files.com-1.0.241 docs/webhook_test.md
files.com-1.0.240 docs/webhook_test.md
files.com-1.0.239 docs/webhook_test.md
files.com-1.0.238 docs/webhook_test.md
files.com-1.0.237 docs/webhook_test.md
files.com-1.0.236 docs/webhook_test.md
files.com-1.0.235 docs/webhook_test.md
files.com-1.0.234 docs/webhook_test.md
files.com-1.0.233 docs/webhook_test.md
files.com-1.0.232 docs/webhook_test.md
files.com-1.0.231 docs/webhook_test.md
files.com-1.0.230 docs/webhook_test.md
files.com-1.0.229 docs/webhook_test.md
files.com-1.0.228 docs/webhook_test.md
files.com-1.0.227 docs/webhook_test.md