Skip to content

Commit 8dde8bc

Browse files
committed
Update Readme with new option.
1 parent 478fffa commit 8dde8bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,19 @@ WebhookCall::create()
349349
```
350350
or activate the `throw_exception_on_failure` global option of the `webhook-server` config file.
351351

352+
### Sending raw string body instead of JSON
353+
354+
By default, all webhooks will transform the payload into JSON. Instead of sending JSON, you can send any string by using the `sendRawBody(string $body)` option instead.
355+
356+
Due to type mismatch in the Signer API, it is currently not support to sign raw data requests
357+
```php
358+
WebhookCall::create()
359+
->sendRawBody("<root>someXMLContent</root>")
360+
->doNotSign()
361+
...
362+
->dispatch();
363+
```
364+
352365
### Events
353366

354367
The package fires these events:

0 commit comments

Comments
 (0)