前の記事 «:PHP5.2.0RC1がリリース
次の記事 »:HTTPプロトコルでPINGする

PHPからSkypeのステータスを得るクラスライブラリ:phpSkypeStatus

2006年07月29日

スポンサード リンク
PHP Classes - Class: phpSkypeStatus
Skype is a popular voice communication program that is used by many millions of users worldwide. It can be used to communicate between two or more users that are online at the same time. This class can be used to determine automatically if a given user is online and available for talking.

PHPからSkypeのステータスを得るクラスライブラリ。phpSkypeStatus。
サイトにskypeのステータスを貼り付けたりすることが可能です。

次のようにクラスで使えて便利です。

<?php 
require_once("class.phpSkypeStatus.php"); 

$skypeid="bastian.gorke"

// new status
$status = new phpSkypeStatus($skypeid); 

// if param image = 1 return just the image
if ($_GET['image'] == "1"){ 
    
$status->getImagePNG("smallclassic"); 

echo 
"<html><head><title>".$skypeid." status is ".$status->getText()."</title></head><body>"
echo 
"<h1>".$skypeid." status is ".$status->getText()."</h1>"
echo 
"<p>This is a simple example for the phpSkypeStatus class. As you can see my status is: <img src="".$PHPSELF."?image=1" /></p>"
echo 
"<p>In my language german this status is named ".$status->getText("de")."</p>"
echo 
"</body></html>"
?> 
 

 関連エントリ
PHPからMSN Messengerを操作するクラスライブラリ : flumpCakes

スポンサード リンク

投稿者 KJ : 2006年07月29日 12:07 | ブックマークに追加する Subscribe with livedoor Reader
間違いの指摘をしていただける方はメールでお願いします


本を執筆しました。