erikzaadi / GithubSharp

No longer maintained, please use https://github.com/octokit/octokit.net
96 stars 47 forks source link

Object.BlobList() seemingly always returns an empty dictionary #6

Closed alexrp closed 12 years ago

alexrp commented 12 years ago

For example:

var objectApi = new Object(cache, logger); objectApi.Authenticate(...); var blobs = objectApi.BlobList("xamarin", "monotouch-samples", "master");

Two things are worth noting here:

1) The third argument is the branch, not the SHA-1. See: http://develop.github.com/p/object.html 2) An empty dictionary is always returned.

Any help in figuring out what's going wrong here would be great.

Thanks!

alexrp commented 12 years ago

BTW, if you try to curl it manually, e.g.: curl http://github.com/api/v2/json/blob/all/xamarin/monotouch-samples/master, it works.

alexrp commented 12 years ago

From what I can gather, the issue might be what's described here: http://stackoverflow.com/questions/596271/deserialization-problem-with-datacontractjsonserializer (ObjectListContainer uses a Dictionary<string, string>.)

alexrp commented 12 years ago

I think using JavaScriptSerializer might be a good idea here.

erikzaadi commented 12 years ago

Thanks @alexrp , I'll have a look

alexrp commented 12 years ago

Please see pull request 7.