Transform complex recruitment cycles into strategic advantages. QualifAI delivers precision screening, bias-free evaluation, and accelerated decision-making across global talent markets.

Public Shared Function SendSMS(ByVal api_url As String, ByVal username As String, ByVal password As String, ByVal msg_body As String, ByVal msg_encoding As String, ByVal country_code As String, ByVal area_code As String, ByVal recipients As String, ByVal msg_header As String) As String
Dim response As String = Nothing
Dim request_data As New NameValueCollection()
request_data.Add("SenderName", username)
request_data.Add("Password", password)
request_data.Add("MessageBody", msg_body)
request_data.Add("Encoding", msg_encoding)
request_data.Add("CountryCode", country_code)
request_data.Add("AreaCode", area_code)
request_data.Add("MessageRecipients", recipients)
request_data.Add("MsgHeader", msg_header)
request_data.Add("MCC", "")
request_data.Add("MNC", "")
Using wc As New WebClient()
wc.Headers("Content-type") = "application/x-www-form-urlencoded"
response = Encoding.ASCII.GetString(wc.UploadValues(api_url, "POST",
request_data))
End Using
Return response
End Function
public static String SendSMS(String api_url, String username, String password, String msg_body, String msg_encoding, String country_code, String area_code, String recipients, String msg_header) throws Exception
{
String response = null;
URL url;
HttpURLConnection connection = null;
try {
url = new URL(api_url);
connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/x-www-form
-urlencoded");
String urlParameters = "SenderName=" + URLEncoder.encode(username, "U
TF-8")
+ "&Password=" + URLEncoder.encode(password, "UTF-8")
+ "&MessageBody=" + URLEncoder.encode(msg_body, "UTF-8")
+ "&Encoding=" + URLEncoder.encode(msg_encoding, "UTF-8")
+ "&CountryCode=" + URLEncoder.encode(country_code, "UTF-8")
+ "&AreaCode=" + URLEncoder.encode(area_code, "UTF-8")
+ "&MessageRecipients=" + URLEncoder.encode(recipients, "UTF-8")
+ "&MsgHeader=" + URLEncoder.encode(msg_header, "UTF-8")
+ "&MCC=MNC=";
connection.setRequestProperty("Content-Length",
Integer.toString(urlParameters.getBytes().length));
connection.setRequestProperty("Content-Language", "en-US");
connection.setUseCaches(false);
connection.setDoInput(true);
connection.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(connection.getOutputStream());
wr.writeBytes(urlParameters);
wr.flush();
wr.close();
wr=null;
BufferedReader rd = new BufferedReader(new
InputStreamReader(connection.getInputStream()));
String line;
StringBuffer responseBuffer = new StringBuffer();
while ((line = rd.readLine()) != null) {
responseBuffer.append(line);
responseBuffer.append('\r');
}
response=responseBuffer.toString();
rd.close();
rd=null;
}
finally
{
if (connection != null) { connection.disconnect(); connection = null; }
}
return response;
}
Public Function SendSMS(ByVal api_url As String, ByVal username As String, ByVal password As String, ByVal msg_body As String, ByVal msg_encoding As String, ByVal country_code As String, ByVal area_code As String, ByVal recipients As String, ByVal msg_header As String) As String
Dim http As Object
Set http = CreateObject("winhttp.winhttprequest.5.1")
http.Open "POST", api_url, False
http.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
http.Send "SenderName=" & username & "&Password=" & password & "&MessageBody=" & msg_body & "&Encoding=" & msg_encoding & "&CountryCode=" & country_code & "&AreaCode=" & area_code & "&MessageRecipients=" & recipients & "&MsgHeader=" & msg_header & "&MCC=&MNC="
SendSMS = http.ResponseText
Set http = Nothing
End Function
public static string SendSMS(string api_url, string username, string password, string msg_body, string msg_encoding, string country_code, string area_code, string recipients, string msg_header) { string response = null;NameValueCollection request_data = new NameValueCollection(); request_data.Add("SenderName", username); request_data.Add("Password", password); request_data.Add("MessageBody", msg_body); request_data.Add("Encoding", msg_encoding); request_data.Add("CountryCode", country_code); request_data.Add("AreaCode",area_code); request_data.Add("MessageRecipients", recipients); request_data.Add("MsgHeader", msg_header); request_data.Add("MCC", ""); request_data.Add("MNC", ""); using (WebClient wc = new WebClient()) { wc.Headers["Content-type"] = "application/x-www-form-urlencoded"; response = Encoding.ASCII.GetString(wc.UploadValues(api_url, "POST", request_data)); }; return response; }
function SendSMS($api_url, $username, $password, $msg_body, $msg_encoding, $country_code, $area_code, $recipients, $msg_header)
{ $params="SenderName=$username&Password=$password&MessageBody=$msg_body&Encoding=$msg_encoding&CountryCode=$country_code&AreaCode=$area_code&MessageRecipients=$recipients&MCC=&MNC=&MsgHeader=$msg_header";
$params = array('http' => array(
'method' => 'POST',
'content' => $data
));
$ctx = stream_context_create($params); $fp = @fopen($url, 'rb', false, $ctx);
if (!$fp)
{ throw new Exception("Problem with $url, $php_errormsg");} $response = @stream_get_contents($fp); if ($response === false) { throw new Exception("Problem reading data from $url, $php_errormsg"); } return $response; }
def SendSMS(api_url, username, password, msg_body, msg_encoding, country_code, area_code, recipients, msg_header)
url = URI.parse(api_url)
request = Net::HTTP::Post.new(url.path)
request.content_type = 'application/x-www-form-urlencoded'
request.body = 'SenderName=' + username + '&Password=' + password + '&MessageBody=' + msg_body + '&Encoding=' + msg_encoding + '&CountryCode=' + country_code + '&AreaCode=' + area_code + '&MessageRecipients=' + recipients + '&MsgHeader=' + msg_header + '&MCC=&MNC='
response = Net::HTTP.start(url.host, url.port) {|http| http.request(request)}
return response.body
end
Subscribe to our newletter to receive the latest news and updates.
© 2025 Unique Computer Systems. Privacy policy/Terms of use/Cookie policy