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:
(1998)
Netscape 3.01 can't see db in form (was problems problemsproblems) (1997)
tpl and Explorer (1998)
WebDNA to Apache RewriteMap (2005)
Problems with date math (1997)
WebCat2 beta 11 - new prefs ... (1997)
The List is Changing (1997)
searchable list archive (1997)
Text data with spaces in them... (1997)
Problems with SELECT MULTIPLE (1999)
New public beta available (1997)
[WebDNA] Authentication (2009)
Will there be a PPC Linux version? (2000)
How can I Add several Items into the cart at once? (1997)
SMSI: databases corrupted on crash and permission issues on (2002)
Problems with WebDNA-Talk list (1998)
Multiple Unique SKUs (2000)
listfiles, moving files (1998)
math on date? (1997)
Follow-up to listfiles bug report ... (2003)