You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use gh3 to fetch repositories for a user. I'm able to create a new user object and obtain specific info regarding that user, however, I can't seem to actually get the repositories for that user. This is currently the code I'm using to do that:
var userRepositories = function(userObject) {
var repos = new Gh3.Repositories(userObject);
repos.fetch(function() {
console.log("Repositories", repos);
}, function(){},{page:1, per_page:500, direction : "desc"});
};
And this is the error I'm getting in Chrome dev tools:
Uncaught TypeError: object is not a function VM567:977
Gh3.Repositories.Kind.extend.fetch.Gh3.Helper.callHttpApi.success VM567:255
Gh3.Helper.Kind.extend.callHttpApi.apiParams.successjquery.min.js:3
b.Callbacks.cjquery.min.js:3 b.Callbacks.p.fireWithjquery.min.js:5
kjquery.min.js:5 b.ajaxTransport.send.r
Am I making the call right? Or am I doing something else wrong?
The text was updated successfully, but these errors were encountered:
Hi there,
I'm trying to use gh3 to fetch repositories for a user. I'm able to create a new user object and obtain specific info regarding that user, however, I can't seem to actually get the repositories for that user. This is currently the code I'm using to do that:
And this is the error I'm getting in Chrome dev tools:
Am I making the call right? Or am I doing something else wrong?
The text was updated successfully, but these errors were encountered: