Saturday 2 December 2017

HOW TO MAKE SKYPE CALL USING JAVA


The Desktop API (previously known as the Skype Public API – Application Programming Interface) enables third-party applications to communicate with Skype.

The Skype API provides a mechanism for 3rd party scripts and applications to control Skype UI functions and implement additional or improved features to complement the Skype. Skype is the world's fastest-growing Internet communication offering, allowing unlimited free voice, video and instant messaging communication between users of Skype Software. The API has two layers: The Communication Layer is a set of methods for external application to establish connection to Skype client and communicate with it, The Command Protocol Layer is a text-based "language" that external applications can use to speak to the Skype client, once communication channel is established by Communication Layer.


Kindly find the below code for integration skype using java.



package skypeapi;

/**
 *
 * @author aravindkumar.k
 */
import com.skype.ContactList;
import com.skype.Friend;
import com.skype.Skype;
import com.skype.SkypeException;
public class CallSkype {
    public static void main(String args[]){
        try{
           //Code to make Call using Skype
   Skype.call("skypeUserName");
   
   //Code to send the message using Skype
           Friend fr= list.getFriend("friend Name");
   fr.send("Good evening ");
        }
        catch(Exception e){
            System.out.println(e);
        }
    }
    

}

To download the skype API kindly click on the link below

Skype API(Aravind)