LinkedIn: Alisson Pelizaro
Welcome to the Skype PHP API Interface, a versatile tool that enables you to seamlessly send and receive messages, access contacts, retrieve conversations, and much more! While this project is currently in active development, your support and contributions are greatly appreciated
Please keep in mind that this project is an ongoing endeavor, and we are continuously working to enhance its functionality and capabilities. Your patience and understanding are invaluable as we strive to make this interface the best it can be.
We invite you to become a part of this project's journey by contributing through pull requests. Your ideas, enhancements, and bug fixes are invaluable in shaping the future of this interface. Together, we can make it even more powerful and user-friendly.
We are suggesting you to use composer, with the following :
php composer.phar require alissonpelizaro/SkypePHP
include 'src/Core.php';
$sk = new Skype;
$sk->login('username', 'password') or die ('Username or password is invalid');
NOTE: If the login returns with an error of Authentication failed with the correct username and password, its asking for CAPTCHA, Please perform a login/(re)login manually using a browser to solve the CAPTCHA. After that, you can try to perfom the API login again.
After login, you'll be able to run the following Skype functions:
Get your local ID:
$sk->getLocalUserId();
Get you profile info:
$sk->readMyProfile();
Get your conversation list:
$sk->getConversationsList();
Get contacts list:
$sk->getContactsList();
Get users profile info:
$sk->readProfile([{USER_ID}, {USER_ID}]);
NOTE: The parameter must be an array of users id, at least 1 item
Search a Skype user by username:
$sk->searchSomeone('jonny_depp');
Add a contact by username:
$sk->addContact('jonny_depp', 'Hi Jonny, please add me to talk about pirates');
Get messages in a chat:
$sk->getMessagesList({USER_ID}, $size = 10);
NOTE: Size is optional. Default is 100, that means will bring the 100 last messages chatted
Send a chat message:
$sk->sendMessage({USER_ID}, 'Hi, how are you doing today?');
Creates a group:
$sk->createGroup([{USER_ID}, {USER_ID}], 'Next trip group');
Changes the group name:
$sk->setGroupTopic({GROUP_ID}, '(cancelled) Next trip group :( ');
Gets group info:
$sk->getGroupInfo({GROUP_ID});
Adds someone to group:
$sk->addUserToGroup({GROUP_ID}, {USER_ID});
Removes someone from group:
$sk->kickUser({GROUP_ID}, {USER_ID});
Leaves a group:
$sk->leaveGroup({GROUP_ID});
For groups messaging, you can use the same method for chat. You'll only need to provide the group id instead the chat id.
Please note that a comprehensive documentation is currently in the works, but hasn't been finalized yet due to time constraints. In the meantime, you can explore the technical details by referring to the example/example.php
file provided within the project.
For additional information and support related to the Skype API, please visit the official Skype API documentation at: Skype API Documentation