def modify_group(group_id, name, desc, maxusers = nil) 
      token =    self.auth_token()
      body  =    {groupname: name, description: desc}
      body.merge!({maxusers: maxusers}) unless maxusers.nil?

      result = HTTParty.put("#{@head_url}/chatgroups/#{group_id}", 
          :body => body.to_json,
          :headers => { 'Content-Type' => 'application/json', 'Authorization'=>"Bearer #{token}" } )


      if result.response.code.to_i == 200
        return result["data"]  #maxusers, groupname, description
      else
        nil
      end 
    end
def modify_group(group_id, name, desc, maxusers = nil) 
      token =    self.auth_token()
      body  =    {groupname: name, description: desc}
      body.merge!({maxusers: maxusers}) unless maxusers.nil?

      result = HTTParty.put("#{@head_url}/chatgroups/#{group_id}", 
          :body => body.to_json,
          :headers => { 'Content-Type' => 'application/json', 'Authorization'=>"Bearer #{token}" } )


      if result.response.code.to_i == 200
        return result["data"]  #maxusers, groupname, description
      else
        nil
      end 
    end
修改群组信息