Current section
Files
Jump to
Current section
Files
lib/api/health.ex
defmodule Whatsapp.Api.Health do
@moduledoc """
Módulo para el manejo de la salud de Whatsapp
"""
@parser Application.compile_env(:wax, :parser)
def get_summary({url, auth_header}) do
url
|> Kernel.<>("/health")
|> WhatsappApiRequest.rate_limit_request(:get!, [auth_header])
|> @parser.parse(:get_health)
end
end