Skip to content

Commit

Permalink
Update ROI API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz authored May 10, 2024
1 parent 66aeceb commit 34d2aaf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Rest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* ROI Solutions REST API Client.
*
* @url https://secure2.roisolutions.net/api/help
* @url https://app.roicrm.net/api/help
*
* @package OpenPublicMedia\RoiSolutions\Rest
*/
Expand All @@ -44,7 +44,7 @@ public function __construct(
private readonly string $userId,
private readonly string $password,
protected readonly string $clientCode,
protected string $baseUri = 'https://secure2.roisolutions.net/api/1.0/',
protected string $baseUri = 'https://app.roicrm.net/api/1.0/',
array $httpClientOptions = [],
protected ?object $cache = null
) {
Expand All @@ -57,7 +57,7 @@ public function __construct(
/**
* Gets an API token, refreshing it if necessary.
*
* @url https://secure2.roisolutions.net/api/help/#/system/post-logon
* @url https://app.roicrm.net/api/help/#/system/post-logon
*/
private function getToken(): ?string
{
Expand Down Expand Up @@ -158,7 +158,7 @@ public function post(string $endpoint, array $options = []): object
/**
* Sends a "ping" to the API endpoint.
*
* @url https://secure2.roisolutions.net/api/help/#/system/get-ping
* @url https://app.roicrm.net/api/help/#/system/get-ping
*
* @return string
* "pong!" if the API is up and healthy.
Expand All @@ -172,7 +172,7 @@ public function ping(): string
/**
* Gets the endpoint date and time in UTC.
*
* @url https://secure2.roisolutions.net/api/help/#/system/get-time
* @url https://app.roicrm.net/api/help/#/system/get-time
*/
public function getUtcTime(): DateTime
{
Expand All @@ -183,7 +183,7 @@ public function getUtcTime(): DateTime
/**
* Gets the endpoint date and time in the endpoint timezone.
*
* @url https://secure2.roisolutions.net/api/help/#/system/get-time
* @url https://app.roicrm.net/api/help/#/system/get-time
*/
public function getSystemTime(): DateTime
{
Expand All @@ -194,7 +194,7 @@ public function getSystemTime(): DateTime
/**
* Gets a single donor record based on a ROI Family ID.
*
* @url https://secure2.roisolutions.net/api/help/#/donors/get-donor
* @url https://app.roicrm.net/api/help/#/donors/get-donor
*/
public function getDonor(string $roiFamilyId): Donor
{
Expand All @@ -204,7 +204,7 @@ public function getDonor(string $roiFamilyId): Donor
/**
* Gets email addresses associated with a ROI Family ID.
*
* @url https://secure2.roisolutions.net/api/help/#/contact/get-donor-emails
* @url https://app.roicrm.net/api/help/#/contact/get-donor-emails
*/
public function getDonorEmailAddresses(
string $roiFamilyId,
Expand All @@ -220,7 +220,7 @@ public function getDonorEmailAddresses(
/**
* Gets Passport memberships associated with a ROI Family ID.
*
* @url https://secure2.roisolutions.net/api/help/#/BETA%20TESTING/get-donor-mvault
* @url https://app.roicrm.net/api/help/#/BETA%20TESTING/get-donor-mvault
*/
public function getDonorPassportMemberships(
string $roiFamilyId,
Expand All @@ -236,7 +236,7 @@ public function getDonorPassportMemberships(
/**
* Searches donor records with provided criteria.
*
* @url https://secure2.roisolutions.net/api/help/#/donors/get-donors
* @url https://app.roicrm.net/api/help/#/donors/get-donors
*/
public function searchDonors(
?int $page = null,
Expand Down Expand Up @@ -279,7 +279,7 @@ public function searchDonors(
/**
* Adds a new donor.
*
* @url https://secure2.roisolutions.net/api/help/#/BETA%20TESTING/post-donor
* @url https://app.roicrm.net/api/help/#/BETA%20TESTING/post-donor
*/
public function addDonor(
string $originationVendor,
Expand Down

0 comments on commit 34d2aaf

Please sign in to comment.