Make txuas rau Quire siv REST API thiab webhook, nrog Make cov HTTP thiab webhook modules. Txhua yam hauv API reference siv tau.
Pib scenario ntawm Quire xwm txheej
- Ntxiv Webhooks module Custom webhook ua thawj module, ces luam nws qhov chaw nyob.
- Hauv Quire, qhib
/admin/webhooks, xaiv Add subscription, muab qhov chaw nyob tso thiab xaiv xwm txheej. Quire qhov xwm txheej xeem qhia Make lub cev zoo li cas: khiav module ib zaug thaum nws xa. - Xyuas signature ua ntej ua haujlwm. Hauv webhook advanced settings, cia headers hla mus, ces xyuas
webhook-signaturepiv rau{webhook-id}.{webhook-timestamp}.{body}nrog subscription secret raws li phau ntawv tsim kho piav. Ntxiv filter nres scenario yog qhov xyuas tsis dhau.
Hu Quire ntawm scenario
Siv HTTP module Make a request:
| Teb | Tus nqi |
|---|---|
| URL | https://acme.quirelms.com/api/v1/<resource> |
| Method | Raws li API reference qhia |
| Headers | Authorization: Bearer qk_live_..., thiab Idempotency-Key rau kev sau |
| Body type | Raw, JSON |
| Parse response | Yes |
Tsim key rau Make nkaus ntawm /admin/integrations/api-keys, nrog scope uas scenario xav tau xwb. Rau npe, voj mus ntxiv thaum page.has_more yog true, xa page.next_cursor ua cursor: Make Repeater nrog Set variable khaws cursor ua qhov no tau.
Rau scenario uas yuav tsum ua sawv cev rau ib tug neeg, tso npe OAuth client ntawm /admin/integrations/oauth-clients thiab siv Make HTTP module Make an OAuth 2.0 request nrog nws.
Piv txwv: daim ntsiab lus kawm tiav txhua lim tiam
- Schedule: txhua hnub Monday.
- HTTP:
GET /api/v1/course_completions?updated_since=<a week ago>. - Iterator hla
data, Aggregator muab ua table. - Email lossis xa table.