forked from terloger/SkypePHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.php
39 lines (28 loc) · 1.07 KB
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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 = "your username";
$password = "your 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());