Zapier txuas rau Quire ntawm tib REST API, OAuth client thiab webhook uas txhua kev txuas siv. Tsis muaj Quire code tshwj xeeb rau ib sab twg, yog li Zap siv tau txhua yam hauv API reference.
Pib Zap thaum muaj xwm txheej hauv Quire
- Hauv Zapier, xaiv Webhooks by Zapier ua trigger nrog xwm txheej Catch Raw Hook. Xaiv Raw vim xam signature siv byte kiag uas Quire xa. Luam qhov chaw nyob uas Zapier muab.
- Hauv Quire, qhib
/admin/webhooks, xaiv Add subscription, muab qhov chaw nyob tso thiab xaiv xwm txheej, xws licourse_completion.changed. Quire xub xa xwm txheej xeem; subscription pib thaum Zapier tau txais. - Ntxiv Code by Zapier kauj ruam los xyuas signature nrog subscription secret, raws li phau ntawv qhia tsim kho. Nres Zap yog tias xyuas tsis dhau.
- Parse lub cev thiab ntxiv cov kauj ruam uas xav tau.
Ua haujlwm hauv Quire ntawm Zap
Siv Webhooks by Zapier nrog Custom Request action, lossis API Request hauv app step:
- URL:
https://acme.quirelms.com/api/v1/..., xws li/api/v1/enrolmentstso npe ib tug. - Headers:
Authorization: Bearer qk_live_...nrog key uas tsim ntawm/admin/integrations/api-keysrau Zap no nkaus xwb, thiabIdempotency-Keytsim raws trigger ID kom Zap uas Zapier rov khiav tsis tso npe tib tug ob zaug. - Data: JSON raws li API reference qhia.
Yuav ua sawv cev rau ib tug neeg es tsis yog koom haum, tso npe OAuth client ntawm /admin/integrations/oauth-clients nrog Zapier redirect address thiab siv hauv private Zapier integration.
Piv txwv: tso npe tus qhua thaum deal kaw
- Trigger: CRM qhia tias “deal won”.
- Custom request
PUT /api/v1/users/ext:{customer id}nrog tus neeg npe thiab email: tsim user lossis hloov yog twb muaj. - Custom request
POST /api/v1/enrolmentsnrog user thiab chav kawm, thiabIdempotency-Key: deal-{deal id}.