Wax.CloudAPI.Auth (wax v1.1.4)

Manages the data required for Cloud API authentication

Summary

Functions

Builds the Authorization header the Cloud API requires

Creates a Auth struct

Types

t()

@type t() :: %Wax.CloudAPI.Auth{token: String.t(), whatsapp_number_id: String.t()}

Functions

build_header(auth)

@spec build_header(t()) :: {String.t(), bearer_token :: String.t()}

Builds the Authorization header the Cloud API requires

new(whatsapp_number_id, token)

@spec new(String.t(), String.t()) :: t()

Creates a Auth struct

This is required to interact with the Whatsapp Cloud API