Re: [WebDNA] MailChimp

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109188
interpreted = N
texte = Thanks. I am just back from holiday and saw this post. Thanks for your help :) On 09/06/2012, at 12:37 AM, Philip Edell wrote: > Thanks your code worked a treat. >=20 > Yours >=20 > Phil. > On 7 Jun 2012, at 18:01, aaronmichaelmusic@gmail.com wrote: >=20 >> 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. >>=20 >> [!]***ADD TO MAILCHIMP ***[/!] >> [text]crlf=3D[unurl]%0D%0A[/unurl][/text] >> [text]connectHost=3Dus1.api.mailchimp.com[/text] >> [text]useSSL=3DF[/text] >> [text]scopeURI=3D1.3/[/text] >> [text]_fname=3D[word][/text] >> [text]_lname=3D[word][/text] >> = [text]params=3Doutput=3Dxml&method=3DlistSubscribe&apikey=3D[api_key]&id=3D= [mailchimp_id]&email_address=3D[email]&merge_vars[FNAME]=3D[_fname]&merge_= vars[LNAME]=3D[_lname]&merge_vars[MMERGE4]=3D[Format Days_To_Date = %m/%d][math]{[birthdate]}[/math][/format]&double_optin=3D0[/text] >> [text]call_response=3D[!] >>  [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!] >>  [/!][TCPsend skipheader=3DT]POST = /[scopeURI]?[params] HTTP/1.0[crlf][!]=09 >>  [/!]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] >>=20 >> On Jun 7, 2012, at 11:10 AM, Philip Edell wrote: >>=20 >>> Hi Stuart, >>>=20 >>> To pick up an old thread of yours from a couple of weeks ago... = maybe you got it working? >>>=20 >>> I'm failing to make this work and just posted on the MailChimp = group... >>>=20 >>> Any ideas? >>>=20 >>>=20 >>> All the best, >>>=20 >>> Phil. >>>=20 >>> I am using WebDNA to send the request to MAilChimp API but its not = working as expected.... >>>=20 >>> The URL when entered into browser works fine and returns "true", the = address is added. >>>=20 >>> When sending via WebDNA I get an error 404. It doenst seem to like = my GET /1.3/ >>>=20 >>> = https://us2.api.mailchimp.com/1.3/?output=3Djson&method=3DlistSubscribe&ap= ikey=3DREDACTED-us2&id=3DREDACTED&email_address=3DREDACTED&email_type=3Dht= ml&double_optin=3Dfalse&update_existing=3Dfalse&replace_interests=3Dfalse&= send_welcome=3Dfalse >>>=20 >>> FYI the WebDNA code is: >>>=20 >>> [text]mailchimp_API_key=3D...-us2[/text] >>> [text]mailchimp_API_endpoint=3Dus2.api.mailchimp.com[/text] >>> [text]mailchimp_API_version=3D1.3[/text] >>> [text]mailchimp_API_list_id=3D...[/text] >>> [text]CRLF=3D[unurl]%0D%0A[/unurl][/text] >>>=20 >>>=20 >>> [TEXT]content=3D[!] >>> [/!]?output=3D[URL]json[/URL][!] >>> [/!]&method=3D[URL]listSubscribe[/URL][!] >>> [/!]&apikey=3D[URL][mailchimp_API_key][/URL][!] >>> [/!]&id=3D[URL][mailchimp_API_list_id][/URL][!] >>>=20 >>> [/!]&email_address=3D[URL][email][/URL][!] =20 >>>=20 >>> [/!]&email_type=3D[URL]html[/URL][!] >>> [/!]&double_optin=3D[URL]false[/URL][!] >>> [/!]&update_existing=3D[URL]false[/URL][!] >>> [/!]&replace_interests=3D[URL]false[/URL][!] >>> [/!]&send_welcome=3D[URL]false[/URL][!] >>> [/!][/TEXT] >>>=20 >>>=20 >>> [text]reply=3D[!] >>> [/!][tcpconnect host=3D[mailchimp_API_endpoint]&port=3D443&SSL=3DT][!]= >>> [/!][tcpsend skipheader=3Df]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] >>>=20 >>> [reply] >>>=20 >>> On 10 May 2012, at 07:30, Stuart Tremain wrote: >>>=20 >>>> Has anyone done a MailChimp integration they would like to share ? >>>>=20 >>>> Regards >>>>=20 >>>> Stuart Tremain >>>> IDFK Web Developments >>>> AUSTRALIA >>>> webdna@idfk.com.au >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> --------------------------------------------------------- >>>> 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 >>>=20 >>> --------------------------------------------------------- >>> 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 >>=20 >> --------------------------------------------------------- >> 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 >=20 > --------------------------------------------------------- > 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:

    
  1. Re: [WebDNA] MailChimp (Stuart Tremain 2012)
  2. Re: [WebDNA] MailChimp (Philip Edell 2012)
  3. Re: [WebDNA] MailChimp (Philip Edell 2012)
  4. Re: [WebDNA] MailChimp (Philip Edell 2012)
  5. Re: [WebDNA] MailChimp (aaronmichaelmusic@gmail.com 2012)
  6. Re: [WebDNA] MailChimp (Philip Edell 2012)
  7. [WebDNA] MailChimp (Stuart Tremain 2012)
Thanks. I am just back from holiday and saw this post. Thanks for your help :) On 09/06/2012, at 12:37 AM, Philip Edell wrote: > Thanks your code worked a treat. >=20 > Yours >=20 > Phil. > On 7 Jun 2012, at 18:01, aaronmichaelmusic@gmail.com wrote: >=20 >> 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. >>=20 >> [!]***ADD TO MAILCHIMP ***[/!] >> [text]crlf=3D[unurl]%0D%0A[/unurl][/text] >> [text]connectHost=3Dus1.api.mailchimp.com[/text] >> [text]useSSL=3DF[/text] >> [text]scopeURI=3D1.3/[/text] >> [text]_fname=3D[word][/text] >> [text]_lname=3D[word][/text] >> = [text]params=3Doutput=3Dxml&method=3DlistSubscribe&apikey=3D[api_key]&id=3D= [mailchimp_id]&email_address=3D[email]&merge_vars[FNAME]=3D[_fname]&merge_= vars[LNAME]=3D[_lname]&merge_vars[MMERGE4]=3D[Format Days_To_Date = %m/%d][math]{[birthdate]}[/math][/format]&double_optin=3D0[/text] >> [text]call_response=3D[!] >>  [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!] >>  [/!][TCPsend skipheader=3DT]POST = /[scopeURI]?[params] HTTP/1.0[crlf][!]=09 >>  [/!]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] >>=20 >> On Jun 7, 2012, at 11:10 AM, Philip Edell wrote: >>=20 >>> Hi Stuart, >>>=20 >>> To pick up an old thread of yours from a couple of weeks ago... = maybe you got it working? >>>=20 >>> I'm failing to make this work and just posted on the MailChimp = group... >>>=20 >>> Any ideas? >>>=20 >>>=20 >>> All the best, >>>=20 >>> Phil. >>>=20 >>> I am using WebDNA to send the request to MAilChimp API but its not = working as expected.... >>>=20 >>> The URL when entered into browser works fine and returns "true", the = address is added. >>>=20 >>> When sending via WebDNA I get an error 404. It doenst seem to like = my GET /1.3/ >>>=20 >>> = https://us2.api.mailchimp.com/1.3/?output=3Djson&method=3DlistSubscribe&ap= ikey=3DREDACTED-us2&id=3DREDACTED&email_address=3DREDACTED&email_type=3Dht= ml&double_optin=3Dfalse&update_existing=3Dfalse&replace_interests=3Dfalse&= send_welcome=3Dfalse >>>=20 >>> FYI the WebDNA code is: >>>=20 >>> [text]mailchimp_API_key=3D...-us2[/text] >>> [text]mailchimp_API_endpoint=3Dus2.api.mailchimp.com[/text] >>> [text]mailchimp_API_version=3D1.3[/text] >>> [text]mailchimp_API_list_id=3D...[/text] >>> [text]CRLF=3D[unurl]%0D%0A[/unurl][/text] >>>=20 >>>=20 >>> [text]content=3D[!] >>> [/!]?output=3D[url]json[/URL][!] >>> [/!]&method=3D[url]listSubscribe[/URL][!] >>> [/!]&apikey=3D[url][mailchimp_API_key][/URL][!] >>> [/!]&id=3D[url][mailchimp_API_list_id][/URL][!] >>>=20 >>> [/!]&email_address=3D[url][email][/URL][!] =20 >>>=20 >>> [/!]&email_type=3D[url]html[/URL][!] >>> [/!]&double_optin=3D[url]false[/URL][!] >>> [/!]&update_existing=3D[url]false[/URL][!] >>> [/!]&replace_interests=3D[url]false[/URL][!] >>> [/!]&send_welcome=3D[url]false[/URL][!] >>> [/!][/TEXT] >>>=20 >>>=20 >>> [text]reply=3D[!] >>> [/!][tcpconnect host=3D[mailchimp_API_endpoint]&port=3D443&SSL=3DT][!]= >>> [/!][tcpsend skipheader=3Df]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] >>>=20 >>> [reply] >>>=20 >>> On 10 May 2012, at 07:30, Stuart Tremain wrote: >>>=20 >>>> Has anyone done a MailChimp integration they would like to share ? >>>>=20 >>>> Regards >>>>=20 >>>> Stuart Tremain >>>> IDFK Web Developments >>>> AUSTRALIA >>>> webdna@idfk.com.au >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> --------------------------------------------------------- >>>> 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 >>>=20 >>> --------------------------------------------------------- >>> 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 >>=20 >> --------------------------------------------------------- >> 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 >=20 > --------------------------------------------------------- > 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 Stuart Tremain

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 Number sequence (1997) Links to show shopping cart. (1998) [random] only for 1-100??? (1997) WebCat chatroom/hyperboard (1997) Weird problems with [SHOWIF]s (1997) RE: Is there a 'does not contain' comparison? (1999) Who owns the code? (2002) Secure Server basic question... (1997) [WebDNA] Set UID/GID/Permissions (2009) page chokes on hideif when false and ignored (1998) [WebDNA] WebDNA programmers for hire? (2010) WebCatalog for guestbook ? (1997) sort problems....bug or brain fart? (1997) [format xs] freeze (1997) Cookies? (1997) Lost and Recovered. (1998) Help need to figure this out today!!! Advanced Question. (2004) Snake Bites (1997) WebCatalog can't find database (1997) Getting total number of items ordered (1997)