3
我想列出使用github api的一組用戶的所有要點。這工作得很好,但我似乎無法讓自己或任何其他用戶返回私人信息。Gist/Github API - 獲取私有和公共Gists
我知道你可以在請求中設置範圍,但是我不明白我將如何在我的JQuery請求中設置此值,以及我應該使用什麼範圍來獲取私有需求?
我的一些代碼如下:
var the_url = 'https://api.github.com/users/'+ encodeURIComponent(user) +'/gists';
$.oauth ({
consumerKey: 'xxxxxxxxxxxxxxxxx',
consumerSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
type: "GET",
url: the_url,
data: {},
dataType: 'json',
async: false,
任何想法嗎? – 2012-04-19 09:54:03