Chive / pyrate

a python wrapper for restful apis
MIT License
15 stars 6 forks source link

MailChimp API-URL #8

Closed ohrstrom closed 9 years ago

ohrstrom commented 9 years ago

Fixed (hopefully) API-Key handling for MailChimp.

Implementation did use

apikey[-3:]

but this only works for one-digit API hostnames. Did get an error with a relatively new key: **"*-us10". This key obviously should use us10.api.mailchimp.com - but resulted in s10.api.mailchimp.com

Chive commented 9 years ago

Oh dear :) thanks for spotting and fixing! Going to merge this as soon as I am home again.

Chive commented 9 years ago

Sorry for the delay, merged in https://github.com/Chive/pyrate/commit/1f0f551edc3dcb2146a802296f1931658af0c129. Thanks!