{"id":231,"date":"2020-08-27T14:09:06","date_gmt":"2020-08-27T14:09:06","guid":{"rendered":"https:\/\/www.osdigital.in\/blog\/?p=231"},"modified":"2020-08-27T14:09:06","modified_gmt":"2020-08-27T14:09:06","slug":"what-is-the-difference-between-sms-api-and-developer-sms-api","status":"publish","type":"post","link":"https:\/\/www.osdigital.in\/blog\/what-is-the-difference-between-sms-api-and-developer-sms-api\/","title":{"rendered":"What is the Difference Between SMS API and Developer SMS API?"},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p>What is the Difference Between SMS API and Developer SMS API? \u00a0 (Link to:\u00a0<a href=\"https:\/\/www.osdigital.in\/developer-api.html\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/www.osdigital.in\/developer-api.html&amp;source=gmail&amp;ust=1598623431513000&amp;usg=AFQjCNHAjBzUFK0A9RT_K2uK3497WVuyQQ\">https:\/\/www.osdigital.in\/<wbr \/>developer-api.html<\/a>)<\/p>\n<p>SMS API is a very useful tool to integrate any software to the SMS application. This is a string which bridges between these two applications which work on application triggers. Once the application gives any command a predefined SMS template delivers to the mobile which has been integrated in the application. This is a very useful tool for two way authentication or security of any application. Today almost every application is using this service to integrate it at various places and commands of application to make them more secure. When we are going to the next level of development, security concerns are getting more important because competitors or hackers always want to steal the data and this authentication process avoids theft and the secure your data from the hackers.<\/p>\n<p>SAMPLE SMS API STRING:\u00a0<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php?apikey=xxxxxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;number=xxxxxxxxxx&amp;message=hello&amp;format=json\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php?apikey%3Dxxxxxxxxxxxxxxxx%26senderid%3DXXXXXX%26number%3Dxxxxxxxxxx%26message%3Dhello%26format%3Djson&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNHkuAjvw3YjbcXWopqSkQ4MdTKTGw\">http:\/\/182.18.144.233\/V2\/http-<wbr \/>api.php?apikey=<wbr \/>xxxxxxxxxxxxxxxx&amp;senderid=<wbr \/>XXXXXX&amp;number=xxxxxxxxxx&amp;<wbr \/>message=hello&amp;format=json<\/a><\/p>\n<p>Developer SMS API is a complete API program with the string, which helps you to integrate your application according to the developers language(ASP, .Net, C#, Java, Php etc.) in which your application has been developed. You can find here the sample code for different languages of Developers API. You can choose it according to your requirement.<\/p>\n<p>1. SAMPLE CODE FOR ASP APPLICATION:<\/p>\n<p>sResponse = SMSSend(pno, message )<br \/>\nIf right(sResponse,15) = &#8220;Send Successful&#8221; Then<br \/>\n&#8216;write your code here<br \/>\nEnd If<\/p>\n<p>Function SMSSend (strPh,strMsg)<br \/>\nDim msgResponse<br \/>\nDim strRequest<br \/>\nDim strUrl<br \/>\nmsgResponse = &#8220;&#8221;<\/p>\n<p>strPh=right(strPh,10)<br \/>\nIf not IsNumeric(strPh) Or len(strPh) &lt;&gt; 10 Then<br \/>\nmsgResponse = &#8220;Enter valid Mobile Number.&#8221;<br \/>\nEnd If<br \/>\nIf strMsg = &#8220;&#8221; Then<br \/>\nmsgResponse = &#8220;Enter text message.&#8221;<br \/>\nEnd If<\/p>\n<p>strUrl = &#8220;<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNEgjKka844WWUJjxUEV0DPn8a6n8Q\">http:\/\/182.18.144.233\/V2\/<wbr \/>http-api.php<\/a>?&#8221;<br \/>\nstrRequest = strRequest+&#8221;apikey=apikey&#8221;<br \/>\nstrRequest = strRequest+&#8221;&amp;senderid=<wbr \/>senderid&#8221;<br \/>\nstrRequest = strRequest+&#8221;&amp;number=&#8221;+strPh<br \/>\nstrRequest = strRequest+&#8221;&amp;message=&#8221;+Server.<wbr \/>URLEncode(strMsg)<\/p>\n<p>strUrl = strUrl+strRequest<\/p>\n<p>If msgResponse = &#8220;&#8221; Then<br \/>\nDim oXML<br \/>\nDim sPage<br \/>\nErr.Clear<br \/>\nOn Error Resume Next<br \/>\nSet oXML = Server.CreateObject(&#8220;Msxml2.<wbr \/>XMLHTTP&#8221;)<br \/>\noXML.Open &#8220;get&#8221;, strUrl , false<br \/>\noXML.Send<br \/>\nmsgResponse = oXML.ResponseText<br \/>\nSet oXML = Nothing<br \/>\nEnd If<\/p>\n<p>SMSSend = msgResponse<br \/>\nIf Err.Number &lt;&gt; 0 Then<br \/>\nSMSSend = &#8220;Error on sending sms : &#8220;&amp; Err.Description<br \/>\nEnd If<\/p>\n<p>End Function<\/p>\n<p>2. SAMPLE CODE FOR .NET APPLICATION:<br \/>\nusing System;<br \/>\nusing System.Data;<br \/>\nusing System.Configuration;<br \/>\nusing System.Collections;<br \/>\nusing System.Web;<br \/>\nusing System.IO;<br \/>\nusing System.Net;<br \/>\npublic class Program<br \/>\n{<br \/>\npublic static void Main()<br \/>\n{<br \/>\nWebClient client = new WebClient();<br \/>\nstring baseurl = &#8220;<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php?apikey=xxxxxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;number=xxxxxxxxxx&amp;message=hello&amp;format=json\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php?apikey%3Dxxxxxxxxxxxxxxxx%26senderid%3DXXXXXX%26number%3Dxxxxxxxxxx%26message%3Dhello%26format%3Djson&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNHkuAjvw3YjbcXWopqSkQ4MdTKTGw\">http:\/\/182.18.144.233\/V2\/<wbr \/>http-api.php?apikey=<wbr \/>xxxxxxxxxxxxxxxx&amp;senderid=<wbr \/>XXXXXX&amp;number=xxxxxxxxxx&amp;<wbr \/>message=hello&amp;format=json<\/a>&#8220;;<br \/>\nStream data = client.OpenRead(baseurl);<br \/>\nStreamReader reader = new StreamReader(data);<br \/>\nstring s = reader.ReadToEnd();<br \/>\nConsole.WriteLine(s);<br \/>\ndata.Close();<br \/>\nreader.Close();<br \/>\n}<br \/>\n}<\/p>\n<p>3. SAMPLE CODE FOR PHP APPLICATION:<br \/>\n&#8216;&#8211; Use URLEncode for parameter msgtext<br \/>\n?php<br \/>\n$url = &#8220;<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php?apikey=xxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;number=xxxxxxxxxx&amp;message=xxxxxxxxxxxxx\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php?apikey%3Dxxxxxxxxxxxxx%26senderid%3DXXXXXX%26number%3Dxxxxxxxxxx%26message%3Dxxxxxxxxxxxxx&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNHUZLOpitue7xM3ZeVBtfPaoQSLOw\">http:\/\/182.18.144.233\/V2\/<wbr \/>http-api.php?apikey=<wbr \/>xxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;<wbr \/>number=xxxxxxxxxx&amp;message=<wbr \/>xxxxxxxxxxxxx<\/a>&#8220;;<br \/>\n$ch = curl_init($url);<br \/>\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br \/>\n$curl_scraped_page = curl_exec($ch);<br \/>\ncurl_close($ch);<br \/>\necho $curl_scraped_page;<br \/>\n?<\/p>\n<p>4. SAMPLE CODE FOR JAVA APPLICATION:<br \/>\nimport java.io.BufferedReader;<br \/>\nimport java.io.InputStreamReader;<br \/>\nimport java.io.OutputStreamWriter;<br \/>\nimport java.net.HttpURLConnection;<br \/>\nimport java.net.URL;<br \/>\nimport java.net.URLEncoder;<br \/>\nimport java.util.Date;<\/p>\n<p>public class SMSSend {<br \/>\npublic static void main(String[] args)<br \/>\n{ try {<br \/>\nDate mydate = new Date(System.currentTimeMillis(<wbr \/>));<\/p>\n<p>URL url = new URL(&#8220;<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php?apikey=xxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;number=xxxxxxxxxx&amp;message=hello\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php?apikey%3Dxxxxxxxxxxxxx%26senderid%3DXXXXXX%26number%3Dxxxxxxxxxx%26message%3Dhello&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNFbm0626eBX6SHDp900OW5NiPymdw\">http:\/\/182.18.144.233\/V2\/<wbr \/>http-api.php?apikey=<wbr \/>xxxxxxxxxxxxx&amp;senderid=XXXXXX&amp;<wbr \/>number=xxxxxxxxxx&amp;message=<wbr \/>hello<\/a>&#8220;);<br \/>\nHttpURLConnection conn = (HttpURLConnection)url.<wbr \/>openConnection();<br \/>\nconn.setRequestMethod(&#8220;GET&#8221;);<br \/>\nconn.setDoOutput(true);<br \/>\nconn.setDoInput(true);<br \/>\nconn.setUseCaches(false);<br \/>\nconn.connect();<br \/>\nBufferedReader rd = new BufferedReader(new InputStreamReader(conn.<wbr \/>getInputStream()));<br \/>\nString line;<br \/>\nStringBuffer buffer = new StringBuffer();<br \/>\nwhile ((line = rd.readLine()) != null)<br \/>\n{<br \/>\nbuffer.append(line).append(&#8220;\\<wbr \/>n&#8221;);<br \/>\n}<br \/>\nSystem.out.println(buffer.<wbr \/>toString());<br \/>\nrd.close();<br \/>\nconn.disconnect();<br \/>\n}catch(Exception e)<br \/>\n{ e.printStackTrace();<br \/>\n}<br \/>\n}}<br \/>\nNote: Required javax.servlet.jar and jdom.jar to execute ( downloadable from internet,add to classpath ).<\/p>\n<p>5. SAMPLE CODE FOR PYTHON APPLICATION:<br \/>\nimport http.client<br \/>\nconn = http.client.HTTPSConnection(&#8220;<wbr \/>182.18.144.233&#8243;)<br \/>\nheaders = {<br \/>\n&#8216;cache-control&#8217;: &#8220;no-cache&#8221;<br \/>\n}<br \/>\nconn.request(&#8220;GET&#8221;,&#8221;\/V2\/http-<wbr \/>api.php?apikey=<wbr \/>xxxxxxxxxxxxxxxxxxxx&amp;senderid=<wbr \/>xxxxxx&amp;number=xxxxxxxxxx&amp;<wbr \/>message=hello&#8221;, headers=headers)<br \/>\nres = conn.getresponse()<br \/>\ndata = res.read()<br \/>\nprint(data.decode(&#8220;utf-8&#8221;))<\/p>\n<p>6. SAMPLE CODE FOR NODEJS APPLICATION:<br \/>\nvar request = require (&#8220;request&#8221;);<br \/>\nvar options = { method: &#8216;GET&#8217;,<br \/>\nurl: &#8216;<a href=\"http:\/\/182.18.144.233\/V2\/http-api.php?\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=http:\/\/182.18.144.233\/V2\/http-api.php?&amp;source=gmail&amp;ust=1598623431514000&amp;usg=AFQjCNFdUb4Uobj8-w_-Hu9O0uOqHsMCrw\">http:\/\/182.18.144.233\/V2\/<wbr \/>http-api.php?<\/a>&#8216;,<br \/>\nqs:<br \/>\n{<br \/>\napikey: &#8216;xxxxxxxxxxxxxxxxxxxx&#8217;,<br \/>\nsenderid: &#8216;xxxxxx&#8217;,<br \/>\nnumber: &#8216;xxxxxxxxxx&#8217;,<br \/>\nmessage: &#8216;hello&#8217;<br \/>\n},<br \/>\nstrictSSL: false,<br \/>\nrejectUnauthorized: false,<br \/>\nheaders:<br \/>\n{<br \/>\n&#8216;cache-control&#8217;: &#8216;no-cache&#8217; }<br \/>\n};<\/p>\n<p>request(options, function (error, response, body) {<br \/>\nif (error) throw new Error(error);<\/p>\n<p>console.log(body);<br \/>\n});<\/p>\n<p>So the only difference between both, SMS API is only a String and Developers SMS API is a different developer&#8217;s languages API. Hope this description will help you to understand the Difference between SMS API and Developers SMS API, it&#8217;s also helps to get the different applications languages API to integrate your application with the SMS. Major purposes of the integration of API are:<\/p>\n<p>&#8211; Two Factor Authentication<br \/>\n&#8211; One Time Password<br \/>\n&#8211; Customer Opt-in Subscription<br \/>\n&#8211; Auto Response Pulling<br \/>\n&#8211; Service Automation<br \/>\n&#8211; Application Trigger<br \/>\n&#8211; Software Communication<br \/>\n&#8211; Password Retrieval<br \/>\n&#8211; Service Reminder<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the Difference Between SMS API and Developer SMS API? \u00a0 (Link to:\u00a0https:\/\/www.osdigital.in\/developer-api.html) SMS API is a very useful tool to integrate any software to the SMS application. This is a string which bridges between these two applications which work on application triggers. Once the application gives any command a predefined SMS template delivers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":232,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[1],"tags":[206,205,204],"class_list":["post-231","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-developer-sms-api","tag-sms-api","tag-what-is-the-difference-between-sms-api-and-developer-sms-api","entry","has-media"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":1,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions\/233"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/media\/232"}],"wp:attachment":[{"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.osdigital.in\/blog\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}