AceCentre / pasco

Phrase Auditory Scanning COmmunicator - AAC App for iOS and the Web
https://app.pasco.chat
GNU General Public License v3.0
14 stars 6 forks source link

webhook impl #41 #183

Closed hosseinzoda closed 4 years ago

hosseinzoda commented 4 years ago
Added meta-data
- webhook="<url>" # e.g https://hooks.zapier.com/hooks/catch/.../
- webhook-method="GET/POST/..." # default: "POST"
- webhook-content-type="<content-type header>" # default: "application/json"
- webhook-body="" # default: null, based on content-type, by default expecting json
- webhook-success-message="" # default: null, the message to utter when webhook is successful
- webhook-skip-validating-response # default: false, skip validating response when response is OK (200)
- webhook-modify-headers # default: false, zapier doesn't support cross-origin headers. This parameter should be false for zapier

Example:
- add a row <meta data-webhook="https://hooks.zapier.com/hooks/catch/.../" data-webhook-method="POST" data-webhook-content-type="application/json" data-webhook-body='{"Name":"random row"}' data-webhook-success-message="Did add a row"/>
willwade commented 4 years ago

This looks great to me. Thanks