public function toOpenId($userId, $agentId)
    {
        $params = [
            'userid'  => $userId,
            'agentid' => $agentId,
        ];

        return $this->parseJSON('json', [self::API_TO_OPENID, $params]);
    }
public function toOpenId($userId, $agentId)
    {
        $params = [
            'userid'  => $userId,
            'agentid' => $agentId,
        ];

        return $this->parseJSON('json', [self::API_TO_OPENID, $params]);
    }
public function toOpenId ( $ userId , $ agentId ) { $ params = [ 'userid' => $ userId , 'agentid' => $ agentId , ] ; return $ this -> parseJSON ( 'json' , [ self :: API_TO_OPENID , $ params ] ) ; }
Convert userid to openid.

@param string $userId
@param int    $agentId

@return \EntWeChat\Support\Collection
Convert userid to openid .