<?php$phoneNumber = '+818012345678';$dbus = new DBus();$n = $dbus->createProxy('com.Skype.API', '/com/Skype', 'com.Skype.API');if ($n->Invoke('NAME test') !== 'OK') die();if ($n->Invoke('PROTOCOL 7') !== 'PROTOCOL 7') die();$res = $n->Invoke("CREATE SMS OUTGOING $phoneNumber");list($type, $id) = preg_split('/\s+/u', $res);if ($type !== 'SMS') die();$res = $n->Invoke("SET SMS $id BODY \"done is better than perfect\"");list($type, $id) = preg_split('/\s+/u', $res);if ($type !== 'SMS') die();$res = $n->Invoke("ALTER SMS $id SEND");list($op, $type, $id) = preg_split('/\s+/u', $res);if ($op !== 'ALTER' || $type !== 'SMS') die();$res = $n->Invoke("DELETE SMS $id");
Tuesday, 26 March 2013
send_sms.php
send_sms.php
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment