jkudish/WordPress-GitHub-Plugin-Updater — pull request #15 by pdclark (2012-06-28 13:08:44+00:00)
Title: Add oAuth setup screen for private Github repos; Wrap sslverify in array()

Hi Joachim,

I saw your request for adding support for private repos, so I took a shot at it. This branch allows updates from private repositories using an oAuth token, and it provides setup assistance through Appearance > Github Updater.

Once an application is setup and and a token is given, the WPGitHubUpdaterSetup class isn't needed anymore. The token will authorize updates on all sites from then on, and will allow the plugin author to revoke privileges in the future if they wish.

While in there, I noticed that in get_github_data(), wp_remote_get was being passed ```$this->config['sslverify']``` instead of ```array( 'sslverify' => $this->config['sslverify'] )``` so I changed that as well.

Hope this helps!

Paul Clark

PS: While fishing around in the github APIs, I noticed that they allow querying a repos tags, and the response gives all versions with zipball URLS:

https://api.github.com/repos/jkudish/WordPress-GitHub-Plugin-Updater/tags

Looks like the config values for api_url, raw_url, github_url, and zip_url could all be replaced by that one URL, and the readme would no longer need to include a version number (because they're listed in the tags). Thoughts?