Skip to content

Commit 9fd6bca

Browse files
committed
Updated endpoints
Updated endpoints
1 parent d35eb81 commit 9fd6bca

6 files changed

+30
-26
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,10 @@ $username = "";
465465
$password = "";
466466

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

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

@@ -497,9 +498,10 @@ $username = "";
497498
$password = "";
498499

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

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

@@ -534,9 +536,10 @@ $username = "";
534536
$password = "";
535537

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

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

@@ -573,9 +576,10 @@ $username = "";
573576
$password = "";
574577

575578
//Endpoint Options:
576-
// Client::SMPP_API_OTP_ENDPOINT - Asynchronous SMS API (SMS) - For (one-time pins) OTP & Notification messages
577-
// Client::SMPP_API_MRK_ENDPOINT - Asynchronous SMS API (SMS) - For marketing messages
578-
$endpoint = MobiWeb\Rest\Client::SMPP_API_OTP_ENDPOINT;
579+
// APIClient::API_ENDPOINT - REST API (SMS, OTP, HLR) - Default
580+
// APIClient::SMPP_API_1_ENDPOINT - Asynchronous SMS API (SMS)
581+
// APIClient::SMPP_API_2_ENDPOINT - Asynchronous SMS API (SMS) - Alternative
582+
$endpoint = MobiWeb\Rest\Client::SMPP_API_1_ENDPOINT;
579583

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

src/MobiWeb/Rest/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class Client {
1313
protected $auth;
1414
protected $endpoint;
1515
const API_ENDPOINT = "https://sms.solutions4mobiles.com/apis";
16-
const SMPP_API_OTP_ENDPOINT = "https://apix.solutions4mobiles.com/apis";
17-
const SMPP_API_MRK_ENDPOINT = "https://apix2.solutions4mobiles.com/apis";
16+
const SMPP_API_1_ENDPOINT = "https://apix.solutions4mobiles.com/apis";
17+
const SMPP_API_2_ENDPOINT = "https://apix2.solutions4mobiles.com/apis";
1818
const HLR = "hlr";
1919
const SMS = "sms";
2020
const OTP = "otp";

tests/asynch_get_balance.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

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

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

tests/asynch_get_pricing.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

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

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

tests/asynch_send_full_example.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

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

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

tests/asynch_send_single_message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

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

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

0 commit comments

Comments
 (0)