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.
Get weather report message
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.
@spec get_report_msg(map(), non_neg_integer()) :: String.t()
Get weather report message
@spec send_media_template(String.t(), String.t(), non_neg_integer()) :: String.t()
Send media template from expression
Send template from expression
@spec time_till_next_slot(DateTime.t()) :: non_neg_integer()
Returns time in second till next defined Timeslot
Create a webhook with different signatures, so we can easily implement additional functionality as needed