Skip to content

Commit

Permalink
* Use "voip.ms" instead of "www.voip.ms" in API calls; see #262
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Jan 27, 2024
1 parent 08b53c1 commit 5c5a6ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Expand Up @@ -154,7 +154,7 @@ class RetrieveDidsWorker(context: Context, params: WorkerParameters) :
try {
return httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to getEmail(applicationContext),
"api_password" to getPassword(applicationContext),
Expand Down
Expand Up @@ -284,7 +284,7 @@ class SendMessageWorker(context: Context, params: WorkerParameters) :
try {
return httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to getEmail(applicationContext),
"api_password" to getPassword(applicationContext),
Expand Down
Expand Up @@ -457,7 +457,7 @@ class SyncWorker(context: Context, params: WorkerParameters) :
try {
return httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
request.formData
)
} catch (e: IOException) {
Expand Down
Expand Up @@ -142,7 +142,7 @@ class VerifyCredentialsWorker(context: Context, params: WorkerParameters) :
try {
return httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to email,
"api_password" to password,
Expand Down
Expand Up @@ -139,7 +139,7 @@ class NotificationsRegistrationWorker(
didResponses.add(
httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to getEmail(applicationContext),
"api_password" to getPassword(applicationContext),
Expand All @@ -155,7 +155,7 @@ class NotificationsRegistrationWorker(
didResponses.add(
httpPostWithMultipartFormData(
applicationContext,
"https://www.voip.ms/api/v1/rest.php",
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to getEmail(applicationContext),
"api_password" to getPassword(applicationContext),
Expand Down

0 comments on commit 5c5a6ee

Please sign in to comment.