Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: A MailChimp API offering

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Location
    Wilmington NC, USA or Oaxaca Mexico
    Posts
    822

    Default A MailChimp API offering

    The attached basic Windows program shows you how to add a Member to a MailChimp List. To use it you need the following:

    1) A MailChimp account with at least one List. https://mailchimp.com/

    2) An API key. In your Account under Extras, you will find info on creating an API key.

    3) The ID number of your List. http://developer.mailchimp.com/docum...ilchimp-api-3/ The getting started doc is relatively short and easy to follow. After reading it, I used the playground to GET my List. The ID is in the JSON that's returned.

    To create a new Member in your list, you need an MD5 hash of the lowercase value of the member's email address. Searching the forum, I found code contributed by Clive Richmond.

    The code uses Basic Authorization, not oAuth. Read about it here: https://en.wikipedia.org/wiki/Basic_...authentication The Base64EncodeString function in my code was in the DAW doc.

    Hopefully this will jump-start your use of this API.

    ps: the List ID & API Key in the code are bogus, you will need your own to run the program successfully.
    Attached Files Attached Files
    Last edited by danwalsh46; 21-Nov-2017 at 12:48 PM. Reason: post script

  2. #2
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    3,815

    Default Re: A MailChimp API offering

    Thanks Dan

  3. #3
    Join Date
    Feb 2009
    Location
    Maasland, The Netherlands
    Posts
    2,349

    Default Re: A MailChimp API offering

    Thanks. I will give it a try.
    Best regards,

    Peter van Mil
    Appvantage b.v.

  4. #4
    Join Date
    Feb 2009
    Location
    Somewhere in Vermont, USA - unless I'm not
    Posts
    9,656

    Default Re: A MailChimp API offering

    I see a DISD talk in your future sir! Early March, in fact...
    Garret

    All my life,I always wanted to be somebody. Now I see that I should have been more specific.


  5. #5
    Join Date
    Feb 2009
    Location
    Dallas, TX USA
    Posts
    1,371

    Default Re: A MailChimp API offering

    I agree with Mr. Mott - DISD presentation Daniel?
    Mark

  6. #6
    Join Date
    Apr 2009
    Location
    Wilmington NC, USA or Oaxaca Mexico
    Posts
    822

    Default Re: A MailChimp API offering

    Sure

  7. #7

    Default Re: A MailChimp API offering

    Dan, I am working with your MailChimpTest.src, adapting it for my test Playground. I get an Error 404, Resource Not Found, Invalid Path.

    Can I email you the code privately (need email) - and can you see anything that's wrong? I didn't see a reference to the ListID they say must be specified. I plugged one in as part of sFilePath, but maybe it's the wrong place. My email is: nick@memsys.com

  8. #8
    Join Date
    Feb 2009
    Posts
    4,839

    Default Re: A MailChimp API offering

    In Dan's original example he has just hard coded it into the URL

    Move "3.0/lists/04d61f6586/members/" to sFilePath
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  9. #9

    Default Re: A MailChimp API offering

    Quote Originally Posted by Focus View Post
    In Dan's original example he has just hard coded it into the URL

    Move "3.0/lists/04d61f6586/members/" to sFilePath
    What I changed is...

    Move "us15.api.mailchimp.com" to sHost // his starts "us14" but my playground is on "us15"

    // then I changed sFilePath as per what's needed (I think). They seem to refer to ListID as "AudienceID"
    //Move "3.0/lists/04d*61f586/members/" to sFilePath
    Move "3.0/lists/5266bc0674/WXYZ donors" to sFilePath

    But it still returns a 404.
    Nicholas Herlick
    President
    Herlick Data Systems
    1348 Magnolia Ave
    Redlands, CA 92373
    Main: 909-798-2898, ext. 1
    Cell: 951-903-4177
    Fax: 909-792-9651
    Email: nick@memsys.com

  10. #10
    Join Date
    Feb 2009
    Posts
    4,839

    Default Re: A MailChimp API offering

    I'm not quite sure why you have put "WXYZ donors" on the end of the path as this is not an end point and if it were it has not been encoded

    His example is adding a member to an existing list

    So if you want to do the same just change the list id for your own and the host as you have done
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •