onfido v0.2.0 Onfido.Resources.Webhook

Link to this section Summary

Functions

Get a webhook

List webhooks

Register a webhook

Link to this section Functions

Link to this function

get(webhook_id)

Get a webhook

Example

  Onfido.Resources.Webhook.get("<webhook-id>")

List webhooks

Example

  Onfido.Resources.Webhook.list()
Link to this function

register(params)

Register a webhook

Example

  Onfido.Resources.Webhook.register(%{
    url: "https://yourwebserver.com",
    enabled: true,
    environments: ["live", "sandbox"],
    events: [
      "report.completed",
      "check.completed"
    ]
  })