public function set($agentId, array $agentInfo = [])
    {
        $params = array_merge($agentInfo, [
            'agentid' => $agentId,
        ]);

        return $this->parseJSON('json', [self::API_SET, $params]);
    }
public function set($agentId, array $agentInfo = [])
    {
        $params = array_merge($agentInfo, [
            'agentid' => $agentId,
        ]);

        return $this->parseJSON('json', [self::API_SET, $params]);
    }
public function set ( $ agentId , array $ agentInfo = [ ] ) { $ params = array_merge ( $ agentInfo , [ 'agentid' => $ agentId , ] ) ; return $ this -> parseJSON ( 'json' , [ self :: API_SET , $ params ] ) ; }
Set an agent by agent id.

@param int   $agentId
@param array $agentInfo

@return \EntWeChat\Support\Collection
Set an agent by agent id .