View Source SauceAnalytics.HTTP (sauce_analytics v0.1.1)
Responsible for parsing any SauceAnalytics.HTTP.Request
and sending POST requests
to the Sauce Analytics API.
Uses HTTPoison
as a backend for sending requests.
Link to this section Summary
Functions
Given the app_info
, api_uri
, and request
. This sends a POST request
to the appropriate endpoint based on the :type
field in request
.
Link to this section Functions
@spec post( app_info :: SauceAnalytics.AppInfo.t(), api_url :: String.t(), request :: SauceAnalytics.HTTP.Request.t() ) :: {:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Response.t()}
Given the app_info
, api_uri
, and request
. This sends a POST request
to the appropriate endpoint based on the :type
field in request
.
Returns {status, HTTPoison.Response{}}
depending on the status of the response.