client.go
func (c *Client) GetChannelUsers(name string) (*Users, error) {
	path := fmt.Sprintf("/apps/%s/channels/%s/users", c.AppId, name)
	u, err := createRequestURL("GET", c.Host, path, c.Key, c.Secret, authTimestamp(), c.Secure, nil, nil, c.Cluster)
	if err != nil {
		return nil, err
	}
	response, err := c.request("GET", u, nil)
	if err != nil {
		return nil, err
	}
	return unmarshalledChannelUsers(response)
}
func (c *Client) GetChannelUsers(name string) (*Users, error) {
	path := fmt.Sprintf("/apps/%s/channels/%s/users", c.AppId, name)
	u, err := createRequestURL("GET", c.Host, path, c.Key, c.Secret, authTimestamp(), c.Secure, nil, nil, c.Cluster)
	if err != nil {
		return nil, err
	}
	response, err := c.request("GET", u, nil)
	if err != nil {
		return nil, err
	}
	return unmarshalledChannelUsers(response)
}
func ( c * Client ) GetChannelUsers ( name string ) ( * Users , error ) { path := fmt . Sprintf ( " " , c . AppId , name ) u , err := createRequestURL ( " " , c . Host , path , c . Key , c . Secret , authTimestamp ( ) , c . Secure , nil , nil , c . Cluster ) if err != nil { return nil , err } response , err := c . request ( " " , u , nil ) if err != nil { return nil , err } return unmarshalledChannelUsers ( response ) }
/*
Get a list of users in a presence-channel by passing to this method the channel name.

	users, err := client.GetChannelUsers("presence-chatroom")

	//users=> &{List:[{Id:13} {Id:90}]}

*/
/ * Get a list of users in a presence - channel by passing to this method the channel name .