View Source AtEx.Gateway.Voice.QueueStatus (AtEx v0.20.23)
This module holds the implementation for the HTTP Gateway that runs calls against the Africas Talking Voice API endpoint to queueing calls
Summary
Functions
Process results from calling the gateway
This function makes a POST request to check the queue status of voice calls via the Africa's talking queue status endpoint, this function accepts a map of parameters. sent
Functions
Process results from calling the gateway
This function makes a POST request to check the queue status of voice calls via the Africa's talking queue status endpoint, this function accepts a map of parameters. sent
Parameters
attrs: - a map containing:
username- Your Africa’s Talking application username. Can be set in the configphoneNumbers- A comma separated list of one or more numbers mapped to your Africa’s Talking account.
Example
iex> AtEx.Gateway.Voice.QueueStatus.status(%{
...> phoneNumbers: "+254728833180, +254728907896"
...> })
{:ok,
%{
"entries" => [
%{
"phoneNumber" => "+254728833180",
"queueName" => "",
"numCalls" => 1
},
%{
"phoneNumber" => "+254728907896",
"queueName" => "",
"numCalls" => 4
}
],
"errorMessage" => "None",
"status" => "Success"
}}