Re: [WebDNA] MailChimp

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109168
interpreted = N
texte = Thanks your code worked a treat. Yours Phil. 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:

    
  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 your code worked a treat. Yours Phil. 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:

[format 40s]text[/format] doesn't work (1997) WebCat2: multiple currency support (1997) no global [username] or [password] displayed ... (1997) RE: Webcatalog and CyberSTUD (1998) [WebDNA] tag [validcard] fails on webdna 7.0. Do I need the commerce edition? (2011) Storebuilder Seems to have just died (2003) WebCat and image maps (1997) Plugin or CGI or both (1997) authenticating a second user (1997) [WebDNA] Massive Emailing (2010) The Guru Speaks-Is That Really the Only Manuel? (1998) Off Topic: Frames Killer? (1998) Confirming a bug/oddity (2003) WebCatalog Upgrade Pricing? (1997) WCf2 and nested tags (1997) More NT encyption!! (1999) Web Catalog 2 demo (1997) NetSplat and WebCat2 (1997) Re:2nd WebCatalog2 Feature Request (1996) Client-side Image Maps and WebCat? (1998)