Jun 03, 2013; 12:32
pavel
mailchimp subscribe
Hi,
I'm revisiting some older problem about maichimp (L9). Looks like I'm stuck now.
I have the (L9) modified maichimp.inc (written by Jason Huck) in lasso9 startup folder.
I have a test page to add single subscriber to mail list
<?lasso
var('mychimp' = mailchimp(-key='xxxxxxxx116986cc10f89012fe84de-us6', -output='json'))
$mychimp->ping
$mychimp->lists
$mychimp->listSubscribe(
-apikey='xxxxxxxxx116986cc10f89012fe84de-us6',
-id='9d8f6fec76',
//also tried -list_id='9d8f6fec76',
-email_address='pavel@4000ft.com')
?>
Here is the page result
"Everything's Chimpy!"
{"total":1,"data":[{"id":"9d8f6fec76","web_id":55977,"name":"GFTH Members","date_created":"2013-01-06 18:11:36","email_type_option":true,"use_awesomebar":false,"default_from_name":"GetFreeTicketsHere.com","default_from_email":"news@getfreeticketshere.com","default_subject":"GFTH Newsletter","default_language":"en","list_rating":3.5,"subscribe_url_short":"http:\/\/eepurl.com\/vQcd5","subscribe_url_long":"http:\/\/GetFreeTicketsHere.us6.list-manage.com\/subscribe?u=7b2a343b9285bffcdbbab2698&id=9d8f6fec76","beamer_address":"xxxxxxxxxxxMjg1YmZmY2RiYmFiMjY5OC0xOWIyNDZmYy05OGU2LTQ2N2MtYjI2Mi0xNTFlZmQ2ZmY0ZmY=@campaigns.mailchimp.com","visibility":"pub","stats":{"member_count":6726,"unsubscribe_count":570,"cleaned_count":281,"member_count_since_send":2,"unsubscribe_count_since_send":5,"cleaned_count_since_send":1,"campaign_count":34,"grouping_count":0,"group_count":0,"merge_var_count":6,"avg_sub_rate":0,"avg_unsub_rate":73,"target_sub_rate":137,"open_rate":11.832260144715,"click_rate":1.256
7367654963},"modules":[]}]}
{"error":"You must specify a id value for the listSubscribe method","code":-90}
First i get Everything is chimpy. (Looks like the communication with the mailchimp APi works)
Second I get my list detail (there is only one list) The list properties show the list id as 9d8f6fec76. Which is the ID I use in the subscription code.
Third, I get error complaining about the id not being specified. However i did specify it and the list properties showing the same id?!?
Any hints?
Thanks, Pavel
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>