@@ -43,6 +43,18 @@ class Configuration
43
43
*/
44
44
private $ twoFactorAuthBasicAuthPassword = 'TODO: Replace ' ;
45
45
46
+ /**
47
+ * The username to use with basic authentication
48
+ * @var string
49
+ */
50
+ private $ phoneNumberLookupBasicAuthUserName = 'TODO: Replace ' ;
51
+
52
+ /**
53
+ * The password to use with basic authentication
54
+ * @var string
55
+ */
56
+ private $ phoneNumberLookupBasicAuthPassword = 'TODO: Replace ' ;
57
+
46
58
/**
47
59
* The username to use with basic authentication
48
60
* @var string
@@ -96,6 +108,12 @@ public function __construct($configOptions = null)
96
108
if (isset ($ configOptions ['twoFactorAuthBasicAuthPassword ' ])) {
97
109
$ this ->twoFactorAuthBasicAuthPassword = $ configOptions ['twoFactorAuthBasicAuthPassword ' ];
98
110
}
111
+ if (isset ($ configOptions ['phoneNumberLookupBasicAuthUserName ' ])) {
112
+ $ this ->phoneNumberLookupBasicAuthUserName = $ configOptions ['phoneNumberLookupBasicAuthUserName ' ];
113
+ }
114
+ if (isset ($ configOptions ['phoneNumberLookupBasicAuthPassword ' ])) {
115
+ $ this ->phoneNumberLookupBasicAuthPassword = $ configOptions ['phoneNumberLookupBasicAuthPassword ' ];
116
+ }
99
117
if (isset ($ configOptions ['voiceBasicAuthUserName ' ])) {
100
118
$ this ->voiceBasicAuthUserName = $ configOptions ['voiceBasicAuthUserName ' ];
101
119
}
@@ -135,6 +153,12 @@ public function getConfigurationMap()
135
153
if (isset ($ this ->twoFactorAuthBasicAuthPassword )) {
136
154
$ configMap ['twoFactorAuthBasicAuthPassword ' ] = $ this ->twoFactorAuthBasicAuthPassword ;
137
155
}
156
+ if (isset ($ this ->phoneNumberLookupBasicAuthUserName )) {
157
+ $ configMap ['phoneNumberLookupBasicAuthUserName ' ] = $ this ->phoneNumberLookupBasicAuthUserName ;
158
+ }
159
+ if (isset ($ this ->phoneNumberLookupBasicAuthPassword )) {
160
+ $ configMap ['phoneNumberLookupBasicAuthPassword ' ] = $ this ->phoneNumberLookupBasicAuthPassword ;
161
+ }
138
162
if (isset ($ this ->voiceBasicAuthUserName )) {
139
163
$ configMap ['voiceBasicAuthUserName ' ] = $ this ->voiceBasicAuthUserName ;
140
164
}
@@ -187,6 +211,18 @@ public function getTwoFactorAuthBasicAuthPassword()
187
211
return $ this ->twoFactorAuthBasicAuthPassword ;
188
212
}
189
213
214
+ // Getter for phoneNumberLookupBasicAuthUserName
215
+ public function getPhoneNumberLookupBasicAuthUserName ()
216
+ {
217
+ return $ this ->phoneNumberLookupBasicAuthUserName ;
218
+ }
219
+
220
+ // Getter for phoneNumberLookupBasicAuthPassword
221
+ public function getPhoneNumberLookupBasicAuthPassword ()
222
+ {
223
+ return $ this ->phoneNumberLookupBasicAuthPassword ;
224
+ }
225
+
190
226
// Getter for voiceBasicAuthUserName
191
227
public function getVoiceBasicAuthUserName ()
192
228
{
@@ -248,13 +284,15 @@ public function getBaseUri($server = Servers::DEFAULT_)
248
284
Servers::DEFAULT_ => 'api.bandwidth.com ' ,
249
285
Servers::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2 ' ,
250
286
Servers::TWOFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1 ' ,
287
+ Servers::PHONENUMBERLOOKUPDEFAULT => 'https://numbers.bandwidth.com/api/v1 ' ,
251
288
Servers::VOICEDEFAULT => 'https://voice.bandwidth.com ' ,
252
289
Servers::WEBRTCDEFAULT => 'https://api.webrtc.bandwidth.com/v1 ' ,
253
290
),
254
291
Environments::CUSTOM => array (
255
292
Servers::DEFAULT_ => '{base_url} ' ,
256
293
Servers::MESSAGINGDEFAULT => '{base_url} ' ,
257
294
Servers::TWOFACTORAUTHDEFAULT => '{base_url} ' ,
295
+ Servers::PHONENUMBERLOOKUPDEFAULT => '{base_url} ' ,
258
296
Servers::VOICEDEFAULT => '{base_url} ' ,
259
297
Servers::WEBRTCDEFAULT => '{base_url} ' ,
260
298
),
0 commit comments