# give/2.17.0/src/ConnectClient/ConnectClient.php

GiveWP – Donation Plugin and Fundraising Platform, version 2.17.0. 33 lines.

- Page: https://pluginprobe.com/plugins/give/2.17.0/code/src/ConnectClient/ConnectClient.php
- Raw: https://pluginprobe.com/plugins/give/2.17.0/raw/src/ConnectClient/ConnectClient.php
- Modified: 2021-01-13T21:39:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/2.17.0/code/src/ConnectClient/ConnectClient.php#L10-L20`.

```php
<?php
namespace Give\ConnectClient;

/**
 * Class ConnectClient
 * @package Give\PaymentGateways\PayPalCommerce
 *
 * @since 2.8.0
 */
class ConnectClient {
	/**
	 * Api Url
	 *
	 * @since 2.8.0
	 *
	 * @var string
	 */
	public $apiUrl = 'https://connect.givewp.com';

	/**
	 * Get rest api endpoint url for requests.
	 *
	 * @since 2.8.0
	 *
	 * @param string $endpoint
	 *
	 * @return string
	 */
	public function getApiUrl( $endpoint ) {
		return "{$this->apiUrl}/{$endpoint}";
	}
}

```
