33Events service
44==============
55
6- This service exposes the `Events API `. Much of this API is read-only, and while
6+ This service exposes the `Events API `_ . Much of this API is read-only, and while
77pagination is supported, there is a fixed page size of 30 with a limit of 10
8- page requests.
8+ page requests.
99
10- Many events have an `actor ` which denotes the user that performed an event.
11- Additionally, there may be `org ` or `repo ` attributes for events related to
12- Organizations and Repos. Finally, each event object contains a `payload `
10+ Many events have an `actor ` which denotes the user that performed an event.
11+ Additionally, there may be `org ` or `repo ` attributes for events related to
12+ Organizations and Repos. Finally, each event object contains a `payload `
1313attribute containing more detailed information about the event.
14+
1415.. _public events :
1516
1617Public Events
@@ -26,14 +27,39 @@ Yields the most recent public events from Github.
2627 events = gh.events.list().all()
2728 print events[0].payload
2829
30+ Event
31+ .......
32+
33+ .. autoclass :: pygithub3.services.events.Event
34+ :members:
35+
36+ .. attribute :: issues
37+
38+ :ref: `Issues events <Issues events service >`
39+
40+ .. attribute :: networks
41+
42+ :ref: `Events network service `
43+
44+ .. attribute :: orgs
45+
46+ :ref: `Events org service `
47+
48+ .. attribute :: repos
49+
50+ :ref: `Events repo service `
51+
52+ .. attribute :: users
53+
54+ :ref: `Events user service `
2955
3056.. _repository events :
3157
3258Repo Events
3359-----------
3460
35- These are events for a specific repo, including issue and network events. The
36- Issues events are proxied to the `Issues Service `_ .
61+ These are events for a specific repo, including issue and network events. The
62+ Issues events are proxied to the :ref: `Issues service ` .
3763
3864::
3965
@@ -42,12 +68,30 @@ Issues events are proxied to the `Issues Service`_.
4268 print("{t}".format(t=e.type))
4369
4470 # Get the issue Events
45- events = gh.events.issues.list_by_repo(user="copitux",
71+ events = gh.events.issues.list_by_repo(user="copitux",
4672 repo="python-github3")
4773
4874 # Get the Public Events for a Repo's Network
4975 events = gh.events.networks.list(user="copitux", repo="python-github3")
50-
76+
77+ .. _Events network service :
78+
79+ Network
80+ .......
81+
82+ .. autoclass :: pygithub3.services.events.networks.Network
83+ :members:
84+
85+
86+ .. _Events repo service :
87+
88+ Repo
89+ ........
90+
91+ .. autoclass :: pygithub3.services.events.repos.Repo
92+ :members:
93+
94+
5195.. _organziation events :
5296
5397Organization Events
@@ -60,19 +104,27 @@ These are the public events for an Organization
60104 events = gh.events.orgs.list(org="Acme")
61105
62106You may also get a user's feed of events for an Organization, but you *must * be
63- authenticated as the provided user, and you must be a member of the given
107+ authenticated as the provided user, and you must be a member of the given
64108organization.
65109
66110::
67-
111+
68112 events = gh.events.users.orgs(user="copitux", org="acme")
69113
114+ .. _Events org service :
115+
116+ Org
117+ ........
118+
119+ .. autoclass :: pygithub3.services.events.orgs.Org
120+ :members:
121+
70122.. _user events :
71123
72124User Events
73125-----------
74126
75- You can retrieve the public events performed by a user and the public events
127+ You can retrieve the public events performed by a user and the public events
76128that a user receives. If you're authenticated, you may also receive private
77129events.
78130
@@ -84,10 +136,15 @@ events.
84136If authenticated as `copitux `, you could get private events with the
85137following, otherwise you'll just get the public events as above:
86138
87- ::
139+ ::
88140
89141 received_events = gh.events.users.list_received(user="copitux")
90142 performed_events = gh.events.users.list_performed(user="copitux")
91143
144+ .. _Events user service :
145+
146+ User
147+ ........
92148
93- .. _Events API : http://developer.github.com/v3/events/
149+ .. autoclass :: pygithub3.services.events.users.User
150+ :members:
0 commit comments