Skip to content

Commit

Permalink
Remove dependencies from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyans committed Jan 9, 2017
1 parent a9abc4c commit 2050756
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
vendor/*
3 changes: 3 additions & 0 deletions zendesk/org_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func (c *client) CreateOrganizationMembership(orgMembership *OrganizationMembers
return out.OrganizationMembership, err
}

// ListOrganizationMembershipsByUserID returns all organization memberships for a specific user
//
// Zendesk Core API docs: https://developer.zendesk.com/rest_api/docs/core/organization_memberships#list-memberships
func (c *client) ListOrganizationMembershipsByUserID(id int64) ([]OrganizationMembership, error) {
out := new(APIPayload)
err := c.get(fmt.Sprintf("/api/v2/users/%d/organization_memberships.json", id), out)
Expand Down

0 comments on commit 2050756

Please sign in to comment.