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:
Decrypting a user password (2000)
WebCatalog 4.0.2b5 available (2000)
Question about Webcatalog and Webstar for Mac OS X (1998)
Showif, Hideif reverse logic ? (1997)
Some Questions (1997)
Country & Ship-to address & other fields ? (1997)
[WebDNA] Hacked account recovered (2010)
Re:quit command on NT (1997)
How nuch ram??? (1997)
free zip codes database (1999)
sort problems....bug or brain fart? (1997)
Displaying photo attached to first record (1997)
WCS Newbie question (1997)
creator code (1997)
shipCost (1998)
Newbie questions (1999)
RequiredFields notes ... (1997)
Loop into field (1998)
'does not contain' operator needed ... (1997)
Sort Order on a page search (1997)