Closed
Description
Hello,
Locally I've added an additional API call on Github.User
called .issues()
(when authenticated via access token in OAuth) which does this:
// Authenticated via
/*
GH = new Github({
token: validToken,
auth: 'oauth'
});
*/
Github.User = function() {
//...
this.issues = function(cb) {
_request("GET", '/user/issues', {
filter: 'subscribed',
state: 'all',
sort: 'updated',
direction: 'desc'
}, function(err, res) {
cb(err, res);
}, true);
};
// ...
}
Based on the GitHub API documentation here, shouldn't this work?
This is the error I get back:
{
"error": 404,
"path": "/user/issues",
"request": {
"onabort": null,
"onerror": null,
"onload": null,
"onloadend": null,
"onloadstart": null,
"onprogress": null,
"ontimeout": null,
"readyState": 4,
"response": "{\n \"message\": \"Not Found\",\n \"documentation_url\": \"https://developer.github.com/v3\"\n}\n",
"responseText": "{\n \"message\": \"Not Found\",\n \"documentation_url\": \"https://developer.github.com/v3\"\n}\n",
"responseType": "",
"responseURL": "https://api.github.com/user/issues?1432435698158",
"responseXML": null,
"status": 404,
"statusText": "Not Found",
"timeout": 0,
"upload": {
"onabort": null,
"onerror": null,
"onload": null,
"onloadend": null,
"onloadstart": null,
"onprogress": null,
"ontimeout": null
},
"withCredentials": false
}
}
Metadata
Metadata
Assignees
Labels
No labels