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.150 | docs/webhook_test.md |