Skip to content

Commit 84e057c

Browse files
author
Andrew Kannan
committed
Merge branch 'update_version'
2 parents ff4631f + fc3b86f commit 84e057c

21 files changed

Lines changed: 265 additions & 471 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
*.py[cod]
22

33
.env
4+
.cache/
5+
6+
# Auto-generated files
7+
utils/access_methods.py
48

59
# C extensions
610
*.so

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ python:
1111

1212
os:
1313
- linux
14-
- osx
1514

16-
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
17-
install: pip install -r requirements.txt --use-mirrors
15+
# command to install dependencies, e.g. pip install -r requirements.txt
16+
install: pip install -r requirements.txt
1817

1918
# command to run tests
2019
script: py.test tests
20+
21+
before_install:
22+
- pip install codecov
23+
24+
after_success:
25+
- codecov

AUTHORS.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ Development Leads
1111
Contributors
1212
------------
1313

14-
None yet. Why not be the first?
14+
* Piotr Banaszkiewicz <[email protected]>
15+
* Ryan Bagwell <[email protected]>
16+
* Bill So <[email protected]>
17+
* Jon Kaczynski <[email protected]>
18+
* Dan Moore <[email protected]>

HISTORY.rst

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,75 @@
33
History
44
-------
55

6-
3.1.0 (2014-05-11)
6+
3.3.4 (2016-05-05)
7+
-------------------
8+
9+
* Added new organizers endpoint (thanks tp @mgrdcm)
10+
* GET /organizers/:id/events/
11+
12+
3.3.3 (2015-08-24)
13+
-------------------
14+
15+
* Added 3 new user endpoints, thanks to @jon-ga (#29)
16+
17+
* GET /users/:id/events/
18+
* GET /users/:id/venues/
19+
* GET /users/:id/organizers/
20+
21+
3.3.2 (2015-08-17)
22+
-------------------
23+
24+
* Removed type mapping as it added unnecessary complexity preventing easy management of paginated responses.
25+
26+
3.2.1 (2015-08-10)
27+
------------------
28+
29+
* Enabled webhooks
30+
* Fixed ticket definitions in Event creation test
31+
* Set input variable using input argument thanks to Bill So (#27).
32+
33+
3.2.0 (2015-07-07)
34+
-------------------
35+
36+
* Added new publish and unpublish methods thanks to Ryan Bagwell.
37+
* Eventbrite client now accepts an ``eventbrite_api_url`` argument.
38+
39+
3.1.0 (2015-05-11)
740
------------------
841

942
* Added control over expansion of response. Documentation at http://www.eventbrite.com/developer/v3/reference/expansions/
1043

11-
3.0.5 (2014-04-24)
44+
3.0.5 (2015-04-24)
1245
------------------
1346

1447
* Removed 'content-type' header from all GET requests. Thank you @xxv for identifying the problem and contributing code.
1548

16-
3.0.4 (2014-03-12)
49+
3.0.4 (2015-03-12)
1750
------------------
1851

1952
* Resolved the search result response problem where filtering did not work.
2053

2154

22-
3.0.3 (2014-03-02)
55+
3.0.3 (2015-03-02)
2356
------------------
2457

2558
* Fixed import issue with ``__version__``. Thank you @meshy and @longjos for identifying the problem.
2659

27-
3.0.2 (2014-01-30)
60+
3.0.2 (2015-01-30)
2861
------------------
2962

3063
* Event creation now working.
3164
* Added feature allowing the use of Eventbrite API url at test servers. Should expedite development of tricky post actions.
3265

3366

34-
3.0.1 (2014-01-30)
67+
3.0.1 (2015-01-30)
3568
------------------
3669

3770
* Added reverse mapping for ``get_event_ticket_class()`` method.
3871
* Added ``events`` mapping to provide GET access to the Event endpoint.
3972
* Removed several deprecated JSON mappings.
4073

41-
3.0.0 (2014-01-28)
74+
3.0.0 (2015-01-28)
4275
------------------
4376

4477
* Initial release of 3.0.0 client

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ include CONTRIBUTING.rst
33
include HISTORY.rst
44
include LICENSE
55
include README.rst
6-
include eventbrite/apiv3_url_mapping.json
76

87
recursive-include tests *
98
recursive-exclude * __pycache__

README.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ eventbrite-sdk-python
88
.. image:: https://travis-ci.org/eventbrite/eventbrite-sdk-python.svg?branch=master
99
:target: https://travis-ci.org/eventbrite/eventbrite-sdk-python
1010

11-
.. image:: https://pypip.in/d/eventbrite/badge.png
12-
:target: https://pypi.python.org/pypi/eventbrite
13-
1411

1512
* Official Eventbrite_ SDK for Python
16-
* Free software: Apache 2 license
1713
* Full Documentation: http://eventbrite-sdk-python.readthedocs.org/
1814
* API Reference: https://developer.eventbrite.com/docs/
1915

@@ -29,7 +25,7 @@ If you need to, you can also use `easy_install`::
2925
$ easy_install eventbrite
3026

3127
Usage
32-
--------
28+
-----
3329

3430
The Eventbrite Python SDK makes it trivial to interact with the Eventbrite API:
3531

@@ -96,8 +92,20 @@ Versioning
9692
Because this client interacts with Eventbrite's third API (a.k.a. APIv3), we are tying our release numbers against it in a modified-semantic system:
9793

9894
* 3.x.x where '3' matches the API version. This will not change until Eventbrite releases a new API version.
99-
* * x.0.x where '0' is increased any time there is a significant change to the API that possibly breaks backwards compatibility
95+
* x.0.x where '0' is increased any time there is a significant change to the API that possibly breaks backwards compatibility
10096
* x.x.1 where '1' is increased on any release that does not break backwards comptability (small, new features, enhancements, bugfixes)
10197

10298
.. _requests: https://pypi.python.org/pypi/requests
10399
.. _Eventbrite: https://www.eventbrite.com
100+
101+
Contributing
102+
------------
103+
104+
Bug reports and pull requests are welcome on GitHub at https://github.com/eventbrite/eventbrite-sdk-python.
105+
106+
107+
License
108+
-------
109+
110+
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
111+

docs/cookbook.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Cookbook
2+
=========
3+
4+
Get a List of My Draft/Unpublished Events
5+
-----------------------------------------
6+
7+
.. code-block:: python
8+
9+
from eventbrite import Eventbrite
10+
eventbrite = Eventbrite(MY_OAUTH_TOKEN)
11+
12+
# Get my own User ID
13+
my_id = eventbrite.get_user()['id']
14+
15+
# Get a raw list of events (includes pagination details)
16+
events = eventbrite.event_search(**{'user.id': my_id})
17+
18+
# List the events in draft status
19+
[x for x in events['events'] if x['status'] == 'draft']

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Contents:
1414
readme
1515
installation
1616
usage
17+
cookbook
1718
contributing
1819
authors
1920
history

eventbrite/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
__author__ = 'Daniel Greenfeld'
55
__email__ = '[email protected]'
6-
__version__ = '3.1.0'
6+
__version__ = '3.3.4.1'
77

88

99
from .client import Eventbrite # noqa

eventbrite/access_methods.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,16 @@ def post_organizers(self, id, **data):
328328

329329
return self.post("/organizers/{0}/".format(id), data=data)
330330

331+
def get_organizer_events(self, id, **data):
332+
"""
333+
GET /organizers/:id/events/
334+
Returns a paginated response of :format:`events <event>`, under
335+
the key ``events``, of all events the organizer has access to
336+
337+
"""
338+
339+
return self.get("/organizers/{0}/events/".format(id), data=data)
340+
331341
def get_system_timezones(self, **data):
332342
"""
333343
GET /system/timezones/
@@ -371,6 +381,36 @@ def get_user_owned_events(self, id, **data):
371381

372382
return self.get("/users/{0}/owned_events/".format(id), data=data)
373383

384+
def get_user_events(self, id, **data):
385+
"""
386+
GET /users/:id/events/
387+
Returns a paginated response of :format:`events <event>`, under
388+
the key ``events``, of all events the user has access to
389+
390+
"""
391+
392+
return self.get("/users/{0}/events/".format(id), data=data)
393+
394+
def get_user_venues(self, id, **data):
395+
"""
396+
GET /users/:id/venues/
397+
Returns a paginated response of :format:`venues <venue>` objects
398+
that are owned by the user.
399+
400+
"""
401+
402+
return self.get("/users/{0}/venues/".format(id), data=data)
403+
404+
def get_user_organizers(self, id, **data):
405+
"""
406+
GET /users/:id/organizers/
407+
Returns a paginated response of :format:`organizers <organizer>` objects
408+
that are owned by the user.
409+
410+
"""
411+
412+
return self.get("/users/{0}/organizers/".format(id), data=data)
413+
374414
def get_user_owned_event_attendees(self, id, **data):
375415
"""
376416
GET /users/:id/owned_event_attendees/

0 commit comments

Comments
 (0)