diff --git a/HISTORY.rst b/HISTORY.rst index 0452e3e..a40806d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,42 +3,47 @@ History ------- -3.1.0 (2014-05-11) +3.2.0 (2015-06-28) +------------------- + +* Eventbrite client now accepts an ``eventbrite_api_url`` argument. + +3.1.0 (2015-05-11) ------------------ * Added control over expansion of response. Documentation at http://www.eventbrite.com/developer/v3/reference/expansions/ -3.0.5 (2014-04-24) +3.0.5 (2015-04-24) ------------------ * Removed 'content-type' header from all GET requests. Thank you @xxv for identifying the problem and contributing code. -3.0.4 (2014-03-12) +3.0.4 (2015-03-12) ------------------ * Resolved the search result response problem where filtering did not work. -3.0.3 (2014-03-02) +3.0.3 (2015-03-02) ------------------ * Fixed import issue with ``__version__``. Thank you @meshy and @longjos for identifying the problem. -3.0.2 (2014-01-30) +3.0.2 (2015-01-30) ------------------ * Event creation now working. * Added feature allowing the use of Eventbrite API url at test servers. Should expedite development of tricky post actions. -3.0.1 (2014-01-30) +3.0.1 (2015-01-30) ------------------ * Added reverse mapping for ``get_event_ticket_class()`` method. * Added ``events`` mapping to provide GET access to the Event endpoint. * Removed several deprecated JSON mappings. -3.0.0 (2014-01-28) +3.0.0 (2015-01-28) ------------------ * Initial release of 3.0.0 client diff --git a/eventbrite/client.py b/eventbrite/client.py index 241d692..dc8614d 100755 --- a/eventbrite/client.py +++ b/eventbrite/client.py @@ -23,11 +23,11 @@ class Eventbrite(AccessMethodsMixin): allowed_methods = ['post', 'get', 'delete'] - eventbrite_api_url = EVENTBRITE_API_URL content_type_specified = True - def __init__(self, oauth_token): + def __init__(self, oauth_token, eventbrite_api_url=EVENTBRITE_API_URL): self.oauth_token = oauth_token + self.eventbrite_api_url = EVENTBRITE_API_URL @property def headers(self):