nabeelmukhtar / github-java-sdk

This project aims to provide a Java wrapper for Github API.
http://develop.github.com/
64 stars 22 forks source link

Incorrect parsing of the result in UserService.getKeys() #10

Closed thallgren closed 13 years ago

thallgren commented 13 years ago

The UserService.getKeys() will issue a GET with a URL similar to:

http://github.com/api/v2/json/user/keys?access_token=XXX

The response from that is JSON data that starts with

{"public_keys": [{"title": ...

The getKeys() method then looks for "keys" instead of "public_keys" which always yields a null result.

nabeelmukhtar commented 13 years ago

This issue has been fixed in the master branch. Thanks for reporting it.