---
title: "Zapier"
description: "Webhooks અને REST API વડે Quire ને Zapier સાથે જોડો."
image: "https://docs.quirelms.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.quirelms.com/gu/llms.txt
> Use this file to discover all available pages before exploring further.

# Zapier

<span id="zapier"></span>

દરેક સંકલન વાપરે તે જ REST API, OAuth ક્લાયન્ટ અને webhooks મારફતે Zapier Quire સાથે જોડાય છે. કોઈપણ બાજુએ Quire માટે વિશેષ કોડ નથી, તેથી [API સંદર્ભ](https://docs.quirelms.com/api/) જે આપે છે તે બધું Zap કરી શકે છે.

## Quire માં કંઈ થાય ત્યારે Zap શરૂ કરો <!--quire:start-a-zap-when-something-happens-in-quire-->

1. Zapier માં ટ્રિગર તરીકે **Webhooks by Zapier** અને ઇવેન્ટ **Catch Raw Hook** પસંદ કરો. Raw રાખો, કારણ કે Quire એ મોકલેલા ચોક્કસ બાઇટ પર સહી ગણાય છે. Zapier આપે તે સરનામું નકલ કરો.
2. Quire માં `/admin/webhooks` ખોલો, **સબ્સ્ક્રિપ્શન ઉમેરો** પસંદ કરો, સરનામું પેસ્ટ કરો અને ઇવેન્ટ પસંદ કરો, જેમ કે `course_completion.changed`. Quire પહેલાં પરીક્ષણ ઇવેન્ટ મોકલે છે; Zapier તેને મેળવે પછી સબ્સ્ક્રિપ્શન શરૂ થાય છે.
3. સબ્સ્ક્રિપ્શન રહસ્યથી સહી ચકાસતું **Code by Zapier** પગલું ઉમેરો, જેમ [વિકાસકર્તા માર્ગદર્શિકા](/gu/developer/#webhooks) માં બતાવ્યું છે. ચકાસણી ન થાય તો Zap અટકાવો.
4. બૉડી પાર્સ કરો અને જરૂરી પગલાં ચાલુ રાખો.

## Zap માંથી Quire માં ક્રિયા કરો <!--quire:act-in-quire-from-a-zap-->

**Custom Request** ક્રિયા સાથે **Webhooks by Zapier** અથવા ઍપ પગલામાં **API Request** વાપરો:

- **URL**: `https://acme.quirelms.com/api/v1/...`, ઉદાહરણ તરીકે કોઈને નોંધાવવા `/api/v1/enrolments`.
- **Headers**: `Authorization: Bearer qk_live_...` માટે ફક્ત આ Zapની કી `/admin/integrations/api-keys` પર બનાવો, અને ટ્રિગરની ID પરથી `Idempotency-Key` બનાવો, જેથી Zapier Zap ફરી ચલાવે ત્યારે એ જ વ્યક્તિ બે વાર નોંધાય નહીં.
- **Data**: API સંદર્ભમાં દર્શાવ્યા મુજબ JSON.

સંસ્થાની જગ્યાએ વ્યક્તિ તરીકે કાર્ય કરવા Zapier ના રીડાયરેક્ટ સરનામા સાથે `/admin/integrations/oauth-clients` પર OAuth ક્લાયન્ટ નોંધો અને ખાનગી Zapier સંકલનમાંથી તેનો ઉપયોગ કરો.

## ઉદાહરણ: સોદો બંધ થાય ત્યારે ગ્રાહકને નોંધાવો <!--quire:example-enrol-a-customer-when-a-deal-closes-->

1. ટ્રિગર: તમારા CRM માં "સોદો જીત્યો".
2. વ્યક્તિનું નામ અને ઇમેઇલ ધરાવતી કસ્ટમ વિનંતી `PUT /api/v1/users/ext:{customer id}`: વપરાશકર્તા બનાવે છે અથવા પહેલેથી હોય તો અપડેટ કરે છે.
3. વપરાશકર્તા અને અભ્યાસક્રમ સાથે કસ્ટમ વિનંતી `POST /api/v1/enrolments` તથા `Idempotency-Key: deal-{deal id}`.

Source: https://docs.quirelms.com/gu/integrations/zapier/index.mdx
