Skip to content

Commit

Permalink
Merge pull request #144 from suyashjoshi/master
Browse files Browse the repository at this point in the history
Updated Java Code Snippets
  • Loading branch information
grokify authored Jul 1, 2021
2 parents d1dedcc + 6436b49 commit acc1baa
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().post(parameters);
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 acc1baa

Please sign in to comment.