Sha256: 3a08b6b24cace747c176ef08f49ffe6a38d8ad059841a901c02498ee93306eb2

Contents?: true

Size: 1.2 KB

Versions: 41

Compression:

Stored size: 1.2 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.
* `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", 
  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.
* `action` (string): action for test body

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
files.com-1.0.190 docs/webhook_test.md
files.com-1.0.189 docs/webhook_test.md
files.com-1.0.188 docs/webhook_test.md
files.com-1.0.187 docs/webhook_test.md
files.com-1.0.186 docs/webhook_test.md
files.com-1.0.185 docs/webhook_test.md
files.com-1.0.184 docs/webhook_test.md
files.com-1.0.183 docs/webhook_test.md
files.com-1.0.182 docs/webhook_test.md
files.com-1.0.181 docs/webhook_test.md
files.com-1.0.180 docs/webhook_test.md
files.com-1.0.179 docs/webhook_test.md
files.com-1.0.178 docs/webhook_test.md
files.com-1.0.177 docs/webhook_test.md
files.com-1.0.176 docs/webhook_test.md
files.com-1.0.175 docs/webhook_test.md
files.com-1.0.174 docs/webhook_test.md
files.com-1.0.173 docs/webhook_test.md
files.com-1.0.172 docs/webhook_test.md
files.com-1.0.171 docs/webhook_test.md