View Source Glific.Navanatech (Glific v5.1.6)

Glific Navanatech for all API calls to Navanatech

Link to this section Summary

Functions

Get the tesla client with existing configurations.

Decode a text or audio file

Link to this section Functions

@spec client(non_neg_integer()) :: Tesla.Client.t()

Get the tesla client with existing configurations.

@spec decode_message(map()) :: tuple()

Decode a text or audio file

examples

Examples

iex> params = %{

      media_url:
        "https://storage.googleapis.com/cc-tides/uploads/20210721140700_C717_F0_M539582.mp3",
      case_id: "b9296e58-ebf5-462f-a83b-6753f604ad69",
      organization_id: 1
    }

iex> params_text = %{

      text: "ఎందుక",
      case_id: "501e75a0-3b12-46de-b785-5c1e897ab0f2",
      organization_id: 1
    }

iex> Glific.Navanatech.decode_message(params) iex> Glific.Navanatech.decode_message(params_text)