Пример #1
0
<?php

/*
   _____ _                     _____  _    _ _____  
  / ____| |                   |  __ \| |  | |  __ \ 
 | (___ | | ___   _ _ __   ___| |__) | |__| | |__) |
  \___ \| |/ / | | | '_ \ / _ \  ___/|  __  |  ___/ 
  ____) |   <| |_| | |_) |  __/ |    | |  | | |     
 |_____/|_|\_\\__, | .__/ \___|_|    |_|  |_|_|     
               __/ | |                              
              |___/|_|      
			  
Version: 1.1 by Kibioctet (admin@n-mail.fr)
GitHub : https://github.com/Kibioctet/SkypePHP
*/
header("Content-Type: text/plain");
set_time_limit(300);
require "skype.class.php";
$username = "******";
$password = "******";
$skype = new skype($username, $password);
$skype->sendMessage("echo123", "Hello world from PHP at " . date("H:i:s") . " !");
echo "Messages with you and echo123:\n\n";
print_r($skype->getMessagesList("echo123"));
echo "\n\nYour profile : \n\n";
print_r($skype->readMyProfile());
echo "\n\nProfile of echo123 : \n\n";
print_r($skype->readProfile(array("echo123")));
echo "\n\nYour contacts list :\n\n";
print_r($skype->getContactsList());