Lingvo v0.9.0 Lingvo.Client View Source

Client requests

Link to this section Summary

Functions

Performs a GET request

Performs a POST request

Link to this section Types

Link to this type api_key() View Source
api_key() :: {:api_key, String.t()}

Link to this section Functions

Link to this function get(path, access_token) View Source
get(path(), String.t()) :: {}

Performs a GET request

Examples

iex> Lingvo.Client.get("/v1/Transalation", access_token)
{:ok, %HTTPoison.Response{}}
Link to this function post(path) View Source
post(path()) :: {:ok, api_key()}

Performs a POST request

Examples

iex> Lingvo.Client.post("/v1.1/authenticate")
{:ok, ""}