Official APIv2 Wrappers are up

789 views
Skip to first unread message

jesse

unread,
Jul 23, 2013, 2:16:31 PM7/23/13
to mailchimp-...@googlegroups.com

Stan Lemon

unread,
Jul 24, 2013, 8:49:09 AM7/24/13
to mailchimp-...@googlegroups.com
The new api looks great!

Two things about the PHP api...
1. Supporting 5.2 seems silly, at this time it's reached EOL and even 5.3 is approaching EOL. My suggestion would be to drop it and similarly consider adopting namespaces instead of the PEAR underscoring policy.  I realize this is a big change, so it's most likely a "next" version sort of thing.
2. You have composer.phar committed into the repository and this is just silly.  I would strongly suggest removing it.

Thanks for your hard work!

Stan

jesse

unread,
Jul 24, 2013, 1:33:07 PM7/24/13
to mailchimp-...@googlegroups.com
1) Nope, totally necessary. Even only being 5.2+ worries me a tad - I still run into people with hosting providers on PHP4 - and we need to try to support the most possible folks. It is possible a totally separate wrapper that picks up newer PHP, non-backwards compatible stuff could see the light of day at some point.
2) gone.


jesse

Sam Millman

unread,
Aug 2, 2013, 3:24:08 AM8/2/13
to mailchimp-...@googlegroups.com
If those who are on PHP 4 have not been hacked yet then it is merely a matter of time.

It is the same as the IE6 movement, up until recently everyone supported IE6 because "people still used it" but the problem was that it caused numerous problems for web developers to support this (everything had to be backward compatible, unclean code, horrid code, coding nightmares) and those computers that did use IE6 were open to numerous day-to-day attacks from the internet that a newer browser would be able to protect them from easily.

And so the drive to stop IE6 (-8 for Facebook, Google, Amazon and many others) started.

It is the same case with API wrappers in PHP, AWS have discontinued their old namespaceless API, even removed it from their GitHub, and they are not the only one to take this move. It is sometimes the responsibility of the API creaters (think of Facebook and Googles  and even Amazons, since ecommerce sites are normally the last to enbrace none-backward compatible changes, motto here) to force individuals to not just be happy with an out of date, insecure version of PHP and to seek their lazy web host top actually take precautions to ensure the security and durability of ones own site and data. Through this method we are moving forward in browser technology instead of staying stagnent on IE6.

That is why it is sometimes good to push for a new version irrespective of what needs to be supported.

All PHP functionality is backward compatible as such there should never be problems upgrading PHP, hell I am admining sites written in PHP 4.0 running on PHP 5.5, using PHP 5.5 code where it is possible.

Bruno França

unread,
Aug 8, 2013, 4:23:59 PM8/8/13
to mailchimp-...@googlegroups.com
The python wrapper is failing to install (Ubuntu 13.04, Python 2.7.4):

$ sudo pip install mailchimp
[sudo] password for bruno:
Downloading/unpacking mailchimp
  Running setup.py egg_info for package mailchimp
   
Requirement already satisfied (use --upgrade to upgrade): requests>=0.13.2 in /usr/local/lib/python2.7/dist-packages (from mailchimp)
Downloading/unpacking docopt==0.4.0 (from mailchimp)
  Running setup.py egg_info for package docopt
   
Installing collected packages: mailchimp, docopt
  Running setup.py install for mailchimp
    error: file '/tmp/pip-build-root/mailchimp/scripts/mailchimp' does not exist
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/mailchimp/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WDqXno-record/install-record.txt --single-version-externally-managed:
    running install

running build

running build_py

running build_scripts

error: file '/tmp/pip-build-root/mailchimp/scripts/mailchimp' does not exist

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/mailchimp/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WDqXno-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/mailchimp
Storing complete log in /home/bruno/.pip/pip.log

jesse

unread,
Aug 9, 2013, 9:56:49 AM8/9/13
to mailchimp-...@googlegroups.com
python wrapper has been updated.


jesse

Steven Cinquegrana

unread,
Sep 8, 2013, 5:22:20 PM9/8/13
to mailchimp-...@googlegroups.com

The API throws error "The remote server returned an error: (500) Internal Server Error / Unable to load url tracking stats" with method "reports/clicks" if the campaign is sent and has no links. Surely it should just return zero rather than throw an error.

 

Ahmed Samy

unread,
Sep 13, 2013, 1:39:37 PM9/13/13
to mailchimp-...@googlegroups.com
For Symfony2 folks i have created this Wrapper

https://github.com/AhmedSamy/HypeMailchimpBundle

jesse

unread,
Sep 16, 2013, 10:22:08 AM9/16/13
to mailchimp-...@googlegroups.com
That's reasonable and has been updated - in the future, please start a new thread when you have things unrelated to the thread you may be considering posting in (like this, which has nothing to do with the v2 API wrappers).


jesse
Reply all
Reply to author
Forward
Message has been deleted
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages