Skip to content

Commit

Permalink
Updated Java Code snippet for the latest SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyash Joshi authored and Suyash Joshi committed Jul 1, 2021
1 parent d1dedcc commit 9ee0186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/messaging/sms/high-volume/sending-highvolume-sms.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Simple request to broadcast the same message to multiple recipients
m.to = new String[] {numbers[i]};
parameters.messages[i] = m;
}
var resp = restClient.restapi().account().a2psms().batch().post(parameters);
var resp = rc.restapi().account().a2pSms().batch().post(parameters);
String jsonStr = new Gson().toJson(resp, new TypeToken<Object>(){}.getType());
System.out.println(jsonStr);
}
Expand Down Expand Up @@ -404,7 +404,7 @@ Simple request to send customized messages to multiple recipients
m.to = new String[] {numbers[i]};
parameters.messages[i] = m;
}
var resp = restClient.restapi().account().a2psms().batch().post(parameters);
var resp = rc.restapi().account().a2pSms().batch(batchId).get();
String jsonStr = new Gson().toJson(resp, new TypeToken<Object>(){}.getType());
System.out.println(jsonStr);
}
Expand Down Expand Up @@ -551,7 +551,7 @@ Sending a large batch will take some time for the server to complete. You can re
RestClient rc = new RestClient("client_id", "client_secret", "server_url");
rc.authorize("username", "extension_number", "password");
String batchId = "2157ac7d-baab-4d0e-1262-deada6c7xxxx";
var resp = restClient.restapi().account().a2psms().batch(batchId).get();
var resp = rc.restapi().account().a2pSms().batch(batchId).get();
String jsonStr = new Gson().toJson(resp, new TypeToken<Object>(){}.getType());
System.out.println(jsonStr);
}
Expand Down

0 comments on commit 9ee0186

Please sign in to comment.