ExDoppler.WebhookAuth (ExDoppler v1.0.1)

View Source

Module describing a WebhookAuth. See ExDoppler.Webhook

Fields

  • type - either "Basic" or "Bearer"
  • token - If type = "Bearer", the Bearer token
  • username - If type = "Basic", the username to use. (e.g "joe")
  • has_password - If type = "Basic", that there is a password associated. (e.g false)

๐Ÿ“– Resources

Summary

Functions

Creates a WebhookAuth from a map

Functions

build(auth)

Creates a WebhookAuth from a map

๐Ÿท๏ธ Params

  • auth: Map of fields to turn into a WebhookAuth

โคต๏ธ Returns

โœ… On Success

  %ExDoppler.WebhookAuth{...}

โŒ On Failure

  raise Error