Make އިން އޭގެ އަމިއްލަ HTTP އަދި webhook މޮޑިއުލްތަކާއެކު REST API އަދި webhook މެދުވެރިކޮށް ޤުއަރޭއާ ގުޅެއެވެ. API reference ގައިވާ ހުރިހާ ކަމެއް ލިބެއެވެ.
ޤުއަރޭ އިވެންޓަކުން ސިނާރިއޯ ފަށުވުން
- Webhooks module ގައި Custom webhook ފުރަތަމަ module ގޮތުގައި އިތުރުކޮށް، އެޑްރެސް ކޮޕީކުރާށެވެ.
- ޤުއަރޭގައި
/admin/webhooksހުޅުވައި Add subscription ހޮވާ، އެޑްރެސް ޕޭސްޓްކޮށް އިވެންޓުތައް ހޮވާށެވެ. ޤުއަރޭގެ ޓެސްޓް އިވެންޓުން Make ބޮޑީގެ ހައިކަލް ދަސްކުރެއެވެ؛ އެއީ ފޮނުވާ ވަގުތު module އެއް ފަހަރު ހިންގާށެވެ. - ކަމެއް ކުރާ ކުރިން signature ވެރިފައިކުރާށެވެ. webhook ގެ advanced settings ގައި headers ފާސްކޮށް،
webhook-signatureއަކީ{webhook-id}.{webhook-timestamp}.{body}އާ subscription secret އިން ވެރިފައިކުރާށެވެ، developer guide ގައި ބުނިފަދައިން. ޗެކެއް ފޭލްވާއިރު ސިނާރިއޯ ހުއްޓާ ފިލްޓަރެއް އިތުރުކުރާށެވެ.
ސިނާރިއޯއަކުން ޤުއަރޭ ކޯލްކުރުން
HTTP module ގެ Make a request ބޭނުންކުރާށެވެ:
| ފީލްޑް | އަގު |
|---|---|
| URL | https://acme.quirelms.com/api/v1/<resource> |
| Method | API reference އިން އެންގިފަދަ |
| Headers | Authorization: Bearer qk_live_...، ލިޔުމަށް Idempotency-Key |
| Body type | Raw، JSON |
| Parse response | އާނ |
Make އަށް އެކަނި /admin/integrations/api-keys ގައި ކީއެއް ހަދާ، ސިނާރިއޯ އަށް ބޭނުންވާ scope އެކަނި ދޭށެވެ. ލިސްޓްތަކަށް page.has_more true ވާހާލު ލޫޕްކޮށް، page.next_cursor އަކީ cursor ކަމަށް ފޮނުވާށެވެ؛ Make Repeater އާއި cursor ބެހެއްޓޭ Set variable އިން މިކަން ކުރެވެއެވެ.
މީހަކުގެ ފަރުވާގައި ހިންގާނެ ސިނާރިއޯތަކަށް، /admin/integrations/oauth-clients ގައި OAuth client ރަޖިސްޓަރކޮށް، Make HTTP module ގެ Make an OAuth 2.0 request އެއާއެކު ބޭނުންކުރާށެވެ.
މިސާލު: ހަފްތާއަކުން ނިމުން ޚުލާޞާ
- Schedule: ކޮންމެ ހޯމައަކު.
- HTTP:
GET /api/v1/course_completions?updated_since=<a week ago>. dataއަށް Iterator، ޓޭބަލަކަށް Aggregator.- ޓޭބަލް އީމެއިލްކުރާ ނުވަތަ ޕޯސްޓްކުރާށެވެ.