View Source Glific.Clients.DigitalGreen (Glific v5.1.6)

Tweak GCS Bucket name based on group that the contact is in (if any)

Link to this section Summary

Functions

A callback function to support daily tasks for the client in the backend.

Send media template from expression

Send template from expression

Returns time in second till next defined Timeslot

Create a webhook with different signatures, so we can easily implement additional functionality as needed

Link to this section Functions

@spec daily_tasks(non_neg_integer()) :: atom()

A callback function to support daily tasks for the client in the backend.

Link to this function

get_report_msg(weather_report, organization_id)

View Source
@spec get_report_msg(map(), non_neg_integer()) :: String.t()

Get weather report message

Link to this function

send_media_template(uuid, day, organization_id)

View Source
@spec send_media_template(String.t(), String.t(), non_neg_integer()) :: String.t()

Send media template from expression

Link to this function

send_template(uuid, variables)

View Source
@spec send_template(String.t(), list()) :: binary()

Send template from expression

Link to this function

time_till_next_slot(time \\ DateTime.utc_now())

View Source
@spec time_till_next_slot(DateTime.t()) :: non_neg_integer()

Returns time in second till next defined Timeslot

@spec webhook(String.t(), map()) :: map()

Create a webhook with different signatures, so we can easily implement additional functionality as needed