HOW TO list.send with dynamic content for each member

18 views
Skip to first unread message

trun...@gmail.com

unread,
Nov 19, 2014, 3:37:58 AM11/19/14
to mogre...@googlegroups.com
Dear Mogreet, you guys built a great API

But I face following problem

I want to call list.send with message
        "Hey your password is {PASSWORD}"

How to make {PASSWORD} is not same for each member of list

Thank you for supporting

Anthony Rossano

unread,
Nov 19, 2014, 12:33:56 PM11/19/14
to trun...@gmail.com, mogre...@googlegroups.com
Hello Trungnnh - 
Thanks for the complimentary words on our APIs!

What you would like to do is not a 'built-in' feature of the Developer API.  For the developer API we have only one campaign logic, which does not dynamically create the message text - you have to pass in the message text exactly as you want it to be delivered. 

So - if the message needs to change dynamically, you would need to use transaction.send once for each new message, rather than using list.send for a single message to all the recipients. 

You could still use our list tools to build the list and manage opt in, you would just need to retrieve the list and iterate over it to do the send. 

In other words, do :

1) list.download
2) iterate over the list, and for each number do:
3) transaction.send.

That's the solution!
Regards,
ATR




Anthony Rossano, Technologist



--
You received this message because you are subscribed to the Google Groups "Mogreet API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mogreetapi+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages