Monday, April 27, 2015

Tutorial register and config Nexmo to send sms using java


Connect to Any Phone. Anytime. Anywhere. APIs for SMS, Voice & Phone Verification

To day i have a tutorial step by step for register and create small app by java to send sms free use Nexmo api

Below are info to details step to register.

Step 1:
Go website by link:
 Step 2:

 click button Try it for free

Step 3:

Enter all information: first name, last name, email...



and click button Done



Step 4: If your information is ok, Nexmo have message you check email to active account.


Step 5: mail support nexmo to active my account.



Step 6: When active account successful, Nexmo show form for you enter info: Country, Mobile Number


When enter success your info, click button Get Access Code.
Nexmo will send for you sms to enter code verify

Step 7:


You enter verification code and click button Verify to success the process register.


Next download sourcecode to build app send sms:

Go link here to choice:

Pre-built Libraries

https://docs.nexmo.com/index.php/pre-built-libraries

You can join and participate in our developer community to learn, contribute, and help make Nexmo available for more developers around the world.
Nexmo support language: Java, PHP,  Ruby, Node, Python, C#, Perl

this tutorial i will use java


You can download nexmo-java-sdk-v1.5 by link:
after download success, you extract all files
Structure sdk java 


 Step 1: Create Java Application for test

Step 2:  Project name: nexmowithjava


Step 3: and copy folder have name: "lib" to and paste to folder of project netbeans 

Step 4: Add Jar/Folder

 
Step 5: Open  folder of project netbeans and select all lib


 


Step 6: Open folder:
nexmo-java-sdk-v1.5/src


 Step 7: and copy folder have name: "com"

Step 8: and paste to your project netbeans










This here structure of project 



Step 9: Open package com.nexmo.messaging.sdk.examples and open file :
SendTextMessage.java to edit :


  • API_KEY
  • API_SECRET
  • SMS_FROM
  • SMS_TO
  • SMS_TEXT
Step 10: Before you must go link

https://dashboard.nexmo.com/private/dashboard
to get API_KEY and API_SECRET



You change API_KEY, API_SECRET, SMS_FROM, SMS_TO, SMS_TEXT for test send sms
     


 Step 11: Run file end see result



 Your phone received message from Nexmo


I'm very happy and create this tutorial for everybody can send sms, SendWapPush, SendTextMessageHttps.
This here sourcecode demo:
 https://drive.google.com/folderview?id=0B_joAwM58itefjZ0VXVHeksxemZRUzQ4dFBXMFBnbDdHbGtkOTV6d09LcGhzemFJbzVWU3M&usp=sharing
Goodluck!

3 comments:

  1. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role
    Sms marketing
    Text message marketing
    Fitness SMS

    ReplyDelete
  2. This blog is so informative for providing a valuable information about sending Bulk SMS API Java

    ReplyDelete
  3. Usually I never comment on blogs but your article is so convincingthat I never stop myself to say something about it.
    programmable voice call api

    ReplyDelete