Syn
Syn

Reputation: 1128

Is it possible to view private events within a team repo?

Been playing around with the Github v3 API.

I was wondering if it was possible to see private events within a team repository I belong to if I am authenticated.

I see on the docs that with the /users/:username/events endpoint, it'll only show your own private events. Is there a way around this?

Thanks!

Upvotes: 1

Views: 582

Answers (1)

Brendan Forster
Brendan Forster

Reputation: 2718

I think if you are authenticated the GET /repos/:owner/:repo/events endpoint will do what you expect - see events associated with a repository.

Documentation: https://developer.github.com/v3/activity/events/#list-repository-events

There are also repository issue events GET /repos/:owner/:repo/issues/events which are a slightly different format.

Documentation: https://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository

Upvotes: 1

Related Questions