View Source AtEx.Gateway.Application (AtEx v0.20.23)

This module holds the implementation for the HTTP Gateway that runs calls against the Africas Talking API Application Data endpoint, use it to POST and GET requests to the Application endpoint

Summary

Functions

Collects application data from Africas Talking endpoint, Use this function to collect Data about your application

Process results from calling the gateway

Functions

@spec get_data() :: {:ok, map()} | {:error, term()}

Collects application data from Africas Talking endpoint, Use this function to collect Data about your application

Parameters

  • none

Examples

iex> AtEx.Gateway.Application.get_data()
{:ok, %{"UserData" => %{"balance" => "ZAR -1.3448"}} }

Process results from calling the gateway