mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-10 15:44:43 +00:00
Update XML docs
This commit is contained in:
parent
3463804a7c
commit
28e0012470
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,9 @@ There are three types of request values:
|
|||
3. XML Payload
|
||||
|
||||
Referencing XML payload parameters is much like the JSON examples above, but XML is more complex.
|
||||
Element attributes are prefixed by a hyphen (`-`).
|
||||
Element values are prefixed by a pound (`#`).
|
||||
|
||||
Take the following XML payload:
|
||||
|
||||
```xml
|
||||
|
@ -74,7 +77,7 @@ There are three types of request values:
|
|||
</app>
|
||||
```
|
||||
|
||||
To access a given `user` tag, you must treat them as an array.
|
||||
To access a given `user` element, you must treat them as an array.
|
||||
So `app.users.user.0.name` yields `Jeff`.
|
||||
|
||||
Since there's only one `message` tag, it's not treated as an array.
|
||||
|
|
Loading…
Add table
Reference in a new issue