Get api end point from api

@param \Dotdigitalgroup\Email\Model\Apiconnector\Client $client

@return string|boolean
354478
public function getApiEndPointFromApi($client)
    {
        $accountInfo = $client->getAccountInfo();
        $apiEndpoint = false;
        if (is_object($accountInfo) && !isset($accountInfo->message)) {
            //save endpoint for account
            foreach ($accountInfo->properties as $property) {
                if ($property->name == 'ApiEndpoint' && !empty($property->value)) {
                    $apiEndpoint = $property->value;
                    break;
                }
            }
        }
        return $apiEndpoint;
    }
1358485
protected function getEndpoint($method)
    {
        $number = $this->getArgument("number");
        if (is_null($number)) {
            throw new \InvalidArgumentException("Number cant be null");
        }
        $this->delArgument("number");
        $endpoint = "number_verify/$number";

        $code = $this->getArgument("code");
        $this->delArgument("code");
        if (!is_null($code)) {
            $endpoint .= "?code=$code";
        }
        return $endpoint;
    }
1234041
protected function client()
    {
        $apiKey = $this->config('apiKey');
        if (!$apiKey) {
            return null;
        }

        $endpoint = $this->config('endpoint');
        $defaults = $this->config('defaults');
        if ($defaults === null) {
            $defaults = true;
        }
        $client = Client::make($apiKey, $endpoint, $defaults);

        return $client;
    }
704561
private function getEndpoint($type)
    {
        if (!array_key_exists($type, $this->endpoints)) {
            $this->endpoints[$type] = SearchEndpointFactory::get($type);
        }

        return $this->endpoints[$type];
    }
756345
protected function getEndpoint($method)
    {
        $endpoint = "simulate";
        $queryString = array();
        $text = $this->getArgument("text");
        if (!is_null($text)) {
            $queryString['text'] = $text;
            $this->delArgument("text");
        }

        $templateId = $this->getArgument("template_id");
        if (!is_null($templateId)) {
            $queryString['template_id'] = $templateId;
            $this->delArgument("template_id");
        }

        $variables = $this->getArgument("variables");
        if (!is_null($variables)) {
            $queryString['variables'] = json_encode($variables);
            $this->delArgument("variables");
        }

        $country = $this->getArgument("country");
        if (is_null($country)) {
            throw new \InvalidArgumentException("Country cant be null");
        }
        $queryString['country'] = $country;
        $this->delArgument("country");

        $queryString = http_build_query($queryString);
        return "$endpoint?$queryString";
    }
730480
public function client($client = null)
	{
		$client = $client ?: $this->getDefaultClient();

		// If the given driver has not been created before, we will create the instances
		// here and cache it so we can return it next time very quickly. If there is
		// already a driver created by this name, we'll just return that instance.
		if (!isset($this->routers[$client]))
		{
			$this->routers[$client] = $this->createRouter($client);
		}

		return $this->routers[$client];
	}
874807
protected function getEndpoint($method)
    {
        $endpoint = "tariffs";
        $countryIso = $this->getArgument("id");
        if (!is_null($countryIso)) {
            $endpoint .= "/$countryIso";
            $this->delArgument("id");
        }
        return $endpoint;
    }
110688
protected function getClient($clientName)
    {
        $clientName = $clientName ?: 'gbprod.elastica_extra.default_client';

        $client = $this->getContainer()
            ->get(
                $clientName,
                ContainerInterface::NULL_ON_INVALID_REFERENCE
            )
        ;

        $this->validateClient($client, $clientName);

        return $client;
    }
1141034
public function getSpaceCachePath(Client $client): string
    {
        $space = $client->getSpace();
        $spacePath = $this->cacheDir . $space->getId();
        if (!$this->fileSystem->exists($spacePath)) {
            $this->fileSystem->mkdir($spacePath);
        }

        return $spacePath;
    }
744971
protected function getEndpoint($method)
    {
        $endpoint = 'inspect';
        $number = $this->getArgument("number");
        if (!is_null($number)) {
            $endpoint .= "/$number";
            $this->delArgument("number");
        }
        return $endpoint;
    }
386177
protected function getEndpoint($method)
    {
        $endpoint = "sms_services";
        $serviceId = $this->getArgument("id");
        if (!is_null($serviceId)) {
            $endpoint .= "/$serviceId";
            $this->delArgument("id");
        }
        $saveTo = $this->getArgument("accept_file");
        if (!is_null($saveTo)) {
            $endpoint .= "/subscribers";
        }
        $page = $this->getArgument("page");
        $this->delArgument("page");
        if (!is_null($page)) {
            $endpoint .= "/subscribers?page=$page";
        }
        return $endpoint;
    }
1250902
protected function getEndpoint($method)
    {
        $endpoint = "summary";
        $queryString = array();
        $dateFrom = $this->getArgument("date_from");
        if (!is_null($dateFrom)) {
            $queryString['date_from'] = $dateFrom;
            $this->delArgument("date_from");
        }
        $dateTo = $this->getArgument("date_to");
        if (!is_null($dateTo)) {
            $queryString['date_to'] = $dateTo;
            $this->delArgument("date_to");
        }
        $granularity = $this->getArgument("granularity");
        if (!is_null($granularity)) {
            $queryString['granularity'] = $granularity;
            $this->delArgument("granularity");
        }
        if (!empty($queryString)) {
            $queryString = http_build_query($queryString);
            $endpoint .= "?$queryString";
        }
        return $endpoint;
    }
1207936
def get_endpoint(endpoint_id)
      endpoint = EndPoint.new(@client.make_request(:get, @client.concat_user_path("#{DOMAIN_PATH}/#{id}/endpoints/#{endpoint_id}"))[0],
                           @client)
      endpoint.domain_id = id
      endpoint
    end
436416
protected function getEndpoint($method)
    {
        $endpoint = "me/email_verify";
        $nonce = $this->getArgument("nonce");
        if (!is_null($nonce)) {
            $endpoint .= "/$nonce";
            $this->delArgument("nonce");
        }
        return $endpoint;
    }
315605
public function getOpenedClient(ServiceAbstractClient $client = null)
    {
        if (!$client) {
            $client = new ServiceClient();
        }

        $client->open(
            $this->isProductionEnvironment() ? ServiceClient::PRODUCTION_URI : ServiceClient::SANDBOX_URI,
            $this->getParameter('certificate'),
            $this->getParameter('passPhrase')
        );

        return $client;
    }
1374896
protected function authCancel($client)
    {
        if ($this->cancelCallback !== null) {
            $response = call_user_func($this->cancelCallback, $client);
            if ($response instanceof Response) {
                return $response;
            }
        }

        return $this->redirectCancel();
    }
559008
public function client($client = null)
    {
        if (!func_num_args()) {
            return $this->_client;
        }
        $this->_client = $client;
        return $this;
    }