Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.

Added user.orgs function to get list of user's organizations - #12

Merged
fitzgen merged 1 commit into
fitzgen:masterfrom
JangoSteve:orgs
Jan 3, 2012
Merged

Added user.orgs function to get list of user's organizations#12
fitzgen merged 1 commit into
fitzgen:masterfrom
JangoSteve:orgs

Conversation

@JangoSteve

Copy link
Copy Markdown
Contributor

I created a method on the user prototype to retrieve the user's Organizations.

Relevant Github API v2 docs for orgs.

Example usage:

gh.user("JangoSteve").organizations( function(data) {
  console.log(data);
});

// =>
{"organizations":[{"gravatar_id":"30f39a09e233e8369dddf6feb4be0308","blog":"http://weblog.rubyonrails.org/","type":"Organization","login":"rails"}]}

fitzgen added a commit that referenced this pull request Jan 3, 2012
Added user.orgs function to get list of user's organizations
@fitzgen
fitzgen merged commit 54b39c9 into fitzgen:master Jan 3, 2012
@fitzgen

fitzgen commented Jan 3, 2012

Copy link
Copy Markdown
Owner

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants