yandex_translator v0.9.3 YandexTranslator.Cloud View Source

Cloud requests for new version of api

Link to this section Summary

Functions

Performs a request

Get IAM-token

Link to this section Functions

Link to this function call(type, args) View Source
call(String.t(), list()) :: {:ok, %{}}

Performs a request

Examples

iex> YandexTranslator.Cloud.call("languages", args)
Link to this function get_iam_token(args) View Source
get_iam_token(keyword()) :: {:ok, %{iamToken: String.t()}}

Get IAM-token

Examples

iex> YandexTranslator.Cloud.get_iam_token([])
{:ok, %{"iamToken" => ""}}