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

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

Link to this section Summary

Functions

Fix the contact name issue

In the case of TAP we retrive the first group the contact is in and store and set the remote name to be a sub-directory under that group (if one exists)

Check if a contact has more profiles and add that to message.

get template form EEx without variables

Update the fields for all the profiles.

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

Link to this section Functions

@spec fix_contact_name() :: :ok

Fix the contact name issue

@spec gcs_file_name(map()) :: String.t()

In the case of TAP we retrive the first group the contact is in and store and set the remote name to be a sub-directory under that group (if one exists)

Link to this function

maybe_add_profile_activity(activity_info, contact_id, org_id)

View Source
@spec maybe_add_profile_activity(map(), non_neg_integer(), non_neg_integer()) :: map()

Check if a contact has more profiles and add that to message.

Link to this function

template(shortcode, params_staring \\ "")

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

get template form EEx without variables

Link to this function

update_all_profile_fields(org_id, contact_id, key, value)

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

Update the fields for all the profiles.

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

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