Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscribersCount is zero #735

Closed
christophwille opened this issue Mar 1, 2015 · 1 comment
Closed

SubscribersCount is zero #735

christophwille opened this issue Mar 1, 2015 · 1 comment

Comments

@christophwille
Copy link

zerocount

Code to verify is in the WpaGhApp repository (a Windows Phone 8.1 app). You can put a breakpoint on the following line (and check the repos variable):

https://github.com/christophwille/wpaghapp/blob/master/Source/WpaGhApp/ViewModels/Main/RepositoriesViewModel.cs#L43

Note that you first have to register an application with GitHub and enter the credentials here:

https://github.com/christophwille/wpaghapp/blob/master/Source/WpaGhApp/GitHub/GhOAuthConfiguration.cs

@shiftkey
Copy link
Member

shiftkey commented Mar 2, 2015

subscribers_count is no longer returned from the API for this endpoint. The only two counters we return here are stargazers_count (the number of users who have starred a repo) and watchers_count - which we are no longer showing because it's not correct and to be deprecated as per #699

screen shot 2015-03-02 at 12 50 12 pm

The right way to retrieve the watchers for the repository is to use the Watching API:

var client = new GitHubClient(new ProductHeaderValue("testing-wp-octokit"));
client.Credentials = new Credentials("...");
var watchers = await client.Activity.Watching.GetAllWatchers("christophwille", "viennarealtime");

@christophwille let me know if I've missed anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants