You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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");
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
The text was updated successfully, but these errors were encountered: