View Source AtEx.Gateway.Voice.UploadMedia (AtEx v0.20.23)
This module holds the implementation for the HTTP Gateway that runs calls against the Africas Talking Voice API endpoint tfor uploading media file
Summary
Functions
Process results from calling the gateway
This function makes a POST request to upload a media in 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 upload a media in 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 configurl- The url of the file to upload. Don’t forget to start with http://
Example
iex> AtEx.Gateway.Voice.UploadMedia.upload(%{
phoneNumber: "+254728833180",
...> url: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3"
...> })
{:ok, result}