Skip to content

Commit

Permalink
Updated endpoints
Browse files Browse the repository at this point in the history
Updated endpoints
  • Loading branch information
Beliam committed Jun 21, 2024
1 parent d35eb81 commit 9fd6bca
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 26 deletions.
28 changes: 16 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,10 @@ $username = "";
$password = "";

//Endpoint Options:
// Client::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// Client::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = MobiWeb\Rest\Client::SMPP_API_OTP_ENDPOINT;
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = MobiWeb\Rest\Client::SMPP_API_1_ENDPOINT;

$client = new MobiWeb\Rest\Client($username, $password, $endpoint);

Expand Down Expand Up @@ -497,9 +498,10 @@ $username = "";
$password = "";

//Endpoint Options:
// Client::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// Client::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = MobiWeb\Rest\Client::SMPP_API_OTP_ENDPOINT;
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = MobiWeb\Rest\Client::SMPP_API_1_ENDPOINT;

$client = new MobiWeb\Rest\Client($username, $password, $endpoint);

Expand Down Expand Up @@ -534,9 +536,10 @@ $username = "";
$password = "";

//Endpoint Options:
// Client::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// Client::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = MobiWeb\Rest\Client::SMPP_API_OTP_ENDPOINT;
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = MobiWeb\Rest\Client::SMPP_API_1_ENDPOINT;

$client = new MobiWeb\Rest\Client($username, $password, $endpoint);

Expand Down Expand Up @@ -573,9 +576,10 @@ $username = "";
$password = "";

//Endpoint Options:
// Client::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// Client::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = MobiWeb\Rest\Client::SMPP_API_OTP_ENDPOINT;
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = MobiWeb\Rest\Client::SMPP_API_1_ENDPOINT;

$client = new MobiWeb\Rest\Client($username, $password, $endpoint);

Expand Down
4 changes: 2 additions & 2 deletions src/MobiWeb/Rest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Client {
protected $auth;
protected $endpoint;
const API_ENDPOINT = "https://sms.solutions4mobiles.com/apis";
const SMPP_API_OTP_ENDPOINT = "https://apix.solutions4mobiles.com/apis";
const SMPP_API_MRK_ENDPOINT = "https://apix2.solutions4mobiles.com/apis";
const SMPP_API_1_ENDPOINT = "https://apix.solutions4mobiles.com/apis";
const SMPP_API_2_ENDPOINT = "https://apix2.solutions4mobiles.com/apis";
const HLR = "hlr";
const SMS = "sms";
const OTP = "otp";
Expand Down
6 changes: 3 additions & 3 deletions tests/asynch_get_balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

//Endpoint Options:
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// APIClient::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = APIClient::SMPP_API_OTP_ENDPOINT;
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = APIClient::SMPP_API_1_ENDPOINT;

$client = new APIClient($username, $password, $endpoint);

Expand Down
6 changes: 3 additions & 3 deletions tests/asynch_get_pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

//Endpoint Options:
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// APIClient::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = APIClient::SMPP_API_OTP_ENDPOINT;
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = APIClient::SMPP_API_1_ENDPOINT;

$client = new APIClient($username, $password, $endpoint);

Expand Down
6 changes: 3 additions & 3 deletions tests/asynch_send_full_example.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

//Endpoint Options:
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// APIClient::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = APIClient::SMPP_API_OTP_ENDPOINT;
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = APIClient::SMPP_API_1_ENDPOINT;

$client = new APIClient($username, $password, $endpoint);

Expand Down
6 changes: 3 additions & 3 deletions tests/asynch_send_single_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

//Endpoint Options:
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
// APIClient::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
// APIClient::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
$endpoint = APIClient::SMPP_API_OTP_ENDPOINT;
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
$endpoint = APIClient::SMPP_API_1_ENDPOINT;

$client = new APIClient($username, $password, $endpoint);

Expand Down

0 comments on commit 9fd6bca

Please sign in to comment.