Re: [WebDNA] MailChimp
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109169
interpreted = N
texte = Thanks your code worked a treat.YoursPhil.On 7 Jun 2012, at 18:01, aaronmichaelmusic@gmail.com wrote:> This is from a project I did a few months ago. I only touched it up briefly before posting, so let me know if anything is unclear.> > [!]***ADD TO MAILCHIMP ***[/!]> [text]crlf=[unurl]%0D%0A[/unurl][/text]> [text]connectHost=us1.api.mailchimp.com[/text]> [text]useSSL=F[/text]> [text]scopeURI=1.3/[/text]> [text]_fname=[word][/text]> [text]_lname=[word][/text]> [text]params=output=xml&method=listSubscribe&apikey=[api_key]&id=[mailchimp_id]&email_address=[email]&merge_vars[FNAME]=[_fname]&merge_vars[LNAME]=[_lname]&merge_vars[MMERGE4]=[Format Days_To_Date %m/%d][math]{[birthdate]}[/math][/format]&double_optin=0[/text]> [text]call_response=[!]> [/!][TCPconnect host=[connectHost][showif [useSSL]=T]&SSL=T&port=443[/showif]][!]> [/!][TCPsend skipheader=T]POST /[scopeURI]?[params] HTTP/1.0[crlf][!]> [/!]Host: [connectHost][crlf][!]> [/!]Content-Length: [countchars][params][/countChars][crlf][!]> [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!]> [/!][crlf][!]> [/!][params][crlf][!]> [/!][/TCPSend][!]> [/!][/TCPconnect][/text]> > On Jun 7, 2012, at 11:10 AM, Philip Edell wrote:> >> Hi Stuart,>> >> To pick up an old thread of yours from a couple of weeks ago... maybe you got it working?>> >> I'm failing to make this work and just posted on the MailChimp group...>> >> Any ideas?>> >> >> All the best,>> >> Phil.>> >> I am using WebDNA to send the request to MAilChimp API but its not working as expected....>> >> The URL when entered into browser works fine and returns "true", the address is added.>> >> When sending via WebDNA I get an error 404. It doenst seem to like my GET /1.3/>> >> https://us2.api.mailchimp.com/1.3/?output=json&method=listSubscribe&apikey=REDACTED-us2&id=REDACTED&email_address=REDACTED&email_type=html&double_optin=false&update_existing=false&replace_interests=false&send_welcome=false>> >> FYI the WebDNA code is:>> >> [text]mailchimp_API_key=...-us2[/text]>> [text]mailchimp_API_endpoint=us2.api.mailchimp.com[/text]>> [text]mailchimp_API_version=1.3[/text]>> [text]mailchimp_API_list_id=...[/text]>> [text]CRLF=[unurl]%0D%0A[/unurl][/text]>> >> >> [TEXT]content=[!]>> [/!]?output=[URL]json[/URL][!]>> [/!]&method=[URL]listSubscribe[/URL][!]>> [/!]&apikey=[URL][mailchimp_API_key][/URL][!]>> [/!]&id=[URL][mailchimp_API_list_id][/URL][!]>> >> [/!]&email_address=[URL][email][/URL][!] >> >> [/!]&email_type=[URL]html[/URL][!]>> [/!]&double_optin=[URL]false[/URL][!]>> [/!]&update_existing=[URL]false[/URL][!]>> [/!]&replace_interests=[URL]false[/URL][!]>> [/!]&send_welcome=[URL]false[/URL][!]>> [/!][/TEXT]>> >> >> [text]reply=[!]>> [/!][tcpconnect host=[mailchimp_API_endpoint]&port=443&SSL=T][!]>> [/!][tcpsend skipheader=f]GET /1.3/ HTTP/1.0[CRLF][!]>> [/!]User-Agent: Mozilla/4.0[CRLF][!]>> [/!]Content-type: text/namevalue[CRLF][!]>> [/!]Content-Length: [countchars][content][/CountChars][CRLF][!]>> [/!][CRLF][!]>> [/!][content][CRLF][!]>> [/!][/tcpsend][!]>> [/!][/tcpconnect][/text]>> >> [reply]>> >> On 10 May 2012, at 07:30, Stuart Tremain wrote:>> >>> Has anyone done a MailChimp integration they would like to share ?>>> >>> Regards>>> >>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>> >>> >>> >>> >>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list
.>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>> >> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Thanks your code worked a treat.YoursPhil.On 7 Jun 2012, at 18:01, aaronmichaelmusic@gmail.com wrote:> This is from a project I did a few months ago. I only touched it up briefly before posting, so let me know if anything is unclear.> > [!]***ADD TO MAILCHIMP ***[/!]> [text]crlf=[unurl]%0D%0A[/unurl][/text]> [text]connectHost=us1.api.mailchimp.com[/text]> [text]useSSL=F[/text]> [text]scopeURI=1.3/[/text]> [text]_fname=[word][/text]> [text]_lname=[word][/text]> [text]params=output=xml&method=listSubscribe&apikey=[api_key]&id=[mailchimp_id]&email_address=[email]&merge_vars[FNAME]=[_fname]&merge_vars[LNAME]=[_lname]&merge_vars[MMERGE4]=[Format Days_To_Date %m/%d][math]{[birthdate]}[/math][/format]&double_optin=0[/text]> [text]call_response=[!]> [/!][TCPconnect host=[connectHost][showif [useSSL]=T]&SSL=T&port=443[/showif]][!]> [/!][TCPsend skipheader=T]POST /[scopeURI]?[params] HTTP/1.0[crlf][!]> [/!]Host: [connectHost][crlf][!]> [/!]Content-Length: [countchars][params][/countChars][crlf][!]> [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!]> [/!][crlf][!]> [/!][params][crlf][!]> [/!][/TCPSend][!]> [/!][/TCPconnect][/text]> > On Jun 7, 2012, at 11:10 AM, Philip Edell wrote:> >> Hi Stuart,>> >> To pick up an old thread of yours from a couple of weeks ago... maybe you got it working?>> >> I'm failing to make this work and just posted on the MailChimp group...>> >> Any ideas?>> >> >> All the best,>> >> Phil.>> >> I am using WebDNA to send the request to MAilChimp API but its not working as expected....>> >> The URL when entered into browser works fine and returns "true", the address is added.>> >> When sending via WebDNA I get an error 404. It doenst seem to like my GET /1.3/>> >> https://us2.api.mailchimp.com/1.3/?output=json&method=listSubscribe&apikey=REDACTED-us2&id=REDACTED&email_address=REDACTED&email_type=html&double_optin=false&update_existing=false&replace_interests=false&send_welcome=false>> >> FYI the WebDNA code is:>> >> [text]mailchimp_API_key=...-us2[/text]>> [text]mailchimp_API_endpoint=us2.api.mailchimp.com[/text]>> [text]mailchimp_API_version=1.3[/text]>> [text]mailchimp_API_list_id=...[/text]>> [text]CRLF=[unurl]%0D%0A[/unurl][/text]>> >> >> [text]content=[!]>> [/!]?output=[url]json[/URL][!]>> [/!]&method=[url]listSubscribe[/URL][!]>> [/!]&apikey=[url][mailchimp_API_key][/URL][!]>> [/!]&id=[url][mailchimp_API_list_id][/URL][!]>> >> [/!]&email_address=[url][email][/URL][!] >> >> [/!]&email_type=[url]html[/URL][!]>> [/!]&double_optin=[url]false[/URL][!]>> [/!]&update_existing=[url]false[/URL][!]>> [/!]&replace_interests=[url]false[/URL][!]>> [/!]&send_welcome=[url]false[/URL][!]>> [/!][/TEXT]>> >> >> [text]reply=[!]>> [/!][tcpconnect host=[mailchimp_API_endpoint]&port=443&SSL=T][!]>> [/!][tcpsend skipheader=f]GET /1.3/ HTTP/1.0[CRLF][!]>> [/!]User-Agent: Mozilla/4.0[CRLF][!]>> [/!]Content-type: text/namevalue[CRLF][!]>> [/!]Content-Length: [countchars][content][/CountChars][CRLF][!]>> [/!][CRLF][!]>> [/!][content][CRLF][!]>> [/!][/tcpsend][!]>> [/!][/tcpconnect][/text]>> >> [reply]>> >> On 10 May 2012, at 07:30, Stuart Tremain wrote:>> >>> Has anyone done a MailChimp integration they would like to share ?>>> >>> Regards>>> >>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>> >>> >>> >>> >>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>> >> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Philip Edell
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Cart Unique After Rolling Back Time? (2001)
Comments in db? (1997)
Database Upload (2000)
[WebDNA] Mailing list failure !!! (2019)
plugin-acgi, different results (1997)
problems with 2 tags (1997)
2nd WebCatalog2 Feature Request (1996)
Error:Too many nested [xxx] contexts (1997)
[WebDNA] WebDNA app (2013)
Shopping Cart Problem (1998)
Calculating Shipping charges for multiple items and qtys > 1 (1997)
[SHOWIF] (1997)
web delivery (1997)
Automatic POST arg sending? (1998)
ReturnRaw context (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Hello??? (1997)
Emailer help....! (1997)
sendmail spaces (1997)
Shopping problems with 2.1b3 acgi (1997)