func (c *Client) ListTeamInvitations(id int) ([]OrgInvitation, error) {
	c.log("ListTeamInvites", id)
	if c.fake {
		return nil, nil
	}
	path := fmt.Sprintf("/teams/%d/invitations", id)
	var ret []OrgInvitation
	err := c.readPaginatedResults(
		path,
		acceptNone,
		func() interface{} {
			return &[]OrgInvitation{}
		},
		func(obj interface{}) {
			ret = append(ret, *(obj.(*[]OrgInvitation))...)
		},
	)
	if err != nil {
		return nil, err
	}
	return ret, nil
}
func (c *Client) ListTeamInvitations(id int) ([]OrgInvitation, error) {
	c.log("ListTeamInvites", id)
	if c.fake {
		return nil, nil
	}
	path := fmt.Sprintf("/teams/%d/invitations", id)
	var ret []OrgInvitation
	err := c.readPaginatedResults(
		path,
		acceptNone,
		func() interface{} {
			return &[]OrgInvitation{}
		},
		func(obj interface{}) {
			ret = append(ret, *(obj.(*[]OrgInvitation))...)
		},
	)
	if err != nil {
		return nil, err
	}
	return ret, nil
}
// ListTeamInvitations gets a list of team members with pending invitations for the
// given team id
//
// https://developer.github.com/v3/teams/members/#list-pending-team-invitations