Skip to main content

{% assign COUNTRY_CODE = "57" %} {% assign NORMAL_LEN = 12 %} {% assign msisdn_len = custom_attribute.${msisdn} | size %} {% assign prefix = custom_attribute.${msisdn} | slice:0,2 %} {% if prefix != COUNTRY_CODE and msisdn_len < NORMAL_LEN %} {% assign msisdn = custom_attribute.${msisdn} | prepend: COUNTRY_CODE %} {% else%} {% assign msisdn = custom_attribute.${msisdn} %} {% endif %} {%capture text%}Ya activaste Amazon Prime Video con 3 meses de cortesia en tu plan pospago Tigo. Conoce mas sobre tu servicio en b.tigo.com/amazon. Aplican TyC{%endcapture%}https://prod.api.tigo.com/v1/tigo/mobile/kannel/sendsms?from=Tigo&to={{custom_attribute.${msisdn}}}&text={{text | url_encode}}

{% assign COUNTRY_CODE = "57" %} 
{% assign NORMAL_LEN = 12 %}
{% assign msisdn_len = custom_attribute.${msisdn} | size %} 
{% assign prefix = custom_attribute.${msisdn} | slice:0,2 %}
{%  if prefix != COUNTRY_CODE and msisdn_len < NORMAL_LEN %} 
    {% assign msisdn = custom_attribute.${msisdn} | prepend: COUNTRY_CODE %} 
{% else%} 
    {% assign msisdn = custom_attribute.${msisdn} %} 
{% endif %} 
    {%capture text%}
        Ya activaste Amazon Prime Video con 3 meses de cortesia en tu plan pospago Tigo. Conoce mas sobre tu servicio en b.tigo.com/amazon. Aplican TyC{%endcapture%}https://prod.api.tigo.com/v1/tigo/mobile/kannel/sendsms?from=Tigo&to={{custom_attribute.${msisdn}}}&text={{text | url_encode}}

{% assign COUNTRY_CODE = "57" %} {% assign NORMAL_LEN = 12 %} {% assign msisdn_len = custom_attribute.${msisdn} | size %} {% assign prefix = custom_attribute.${msisdn} | slice:0,2 %} {% if prefix != COUNTRY_CODE and msisdn_len < NORMAL_LEN %} {% assign msisdn = custom_attribute.${msisdn} | prepend: COUNTRY_CODE %} {% else%} {% assign msisdn = custom_attribute.${msisdn} %} {% endif %} {%capture text%}Ya activaste Amazon Prime Video con 3 meses de cortesia en tu plan pospago Tigo. Conoce mas sobre tu servicio en b.tigo.com/amazon. Aplican TyC{%endcapture%}https://prod.api.tigo.com/v1/tigo/mobile/kannel/sendsms?from=Tigo&to={{custom_attribute.${msisdn}}}&text={{text | url_encode}}

{% assign COUNTRY_CODE = "57" %} 
{% assign NORMAL_LEN = 12 %}
{% assign msisdn_len = custom_attribute.${msisdn} | size %} 
{% assign prefix = custom_attribute.${msisdn} | slice:0,2 %}
{%  if prefix != COUNTRY_CODE and msisdn_len < NORMAL_LEN %} 
    {% assign msisdn = custom_attribute.${msisdn} | prepend: COUNTRY_CODE %} 
{% else%} 
    {% assign msisdn = custom_attribute.${msisdn} %} 
{% endif %} 
    {%capture text%}
        Ya activaste Amazon Prime Video con 3 meses de cortesia en tu plan pospago Tigo. Conoce mas sobre tu servicio en b.tigo.com/amazon. Aplican TyC{%endcapture%}https://prod.api.tigo.com/v1/tigo/mobile/kannel/sendsms?from=Tigo&to={{custom_attribute.${msisdn}}}&text={{text | url_encode}}
Origen Enlace

Pregunta sobre Liquid: ¿deberia poner el mensaje de texto dentro del if y del else?

{% assign COUNTRY_CODE = "57" %} {% assign NORMAL_LEN = 12 %} {% assign msisdn_len = custom_attribute.${msisdn} | size %} {% assign prefix = custom_attribute.${msisdn} | slice:0,2 %} {% if prefix != COUNTRY_CODE and msisdn_len < NORMAL_LEN %} {% assign msisdn = custom_attribute.${msisdn} | prepend: COUNTRY_CODE %} {% else%} {% assign msisdn = custom_attribute.${msisdn} %} {% endif %} {%capture text%}Ya activaste Amazon Prime Video con 3 meses de cortesia en tu plan pospago Tigo. Conoce mas sobre tu servicio en b.tigo.com/amazon. Aplican TyC{%endcapture%}https://prod.api.tigo.com/v1/tigo/mobile/kannel/sendsms?from=Tigo&to={{custom_attribute.${msisdn}}}&text={{text | url_encode}}