imoo msn機器人測試平台,將於下週三(2009.6.24)取消所有未經申請試用的認證資訊 , 詳見相關資訊 > 其他語言(asp/vb/c#/php/java/perl)請參考站內其他文章,完整開發文件下載( msnSDK訊息控制開發套件 ) <%@ page language="java" contentType="text/html;charset=Big5" %> <% String UserName = "msnsdkt0"; String Password = "msnsdkt0"; //取得SPID String strRet = GETSPID(UserName,Password); String[]tmp = strRet.split("1\t"); String strValue = tmp[1].replace('\n',' ').trim(); String SPID =strValue; out.println("SPID:" + SPID +" " ); //註冊聯絡人 String Email = "sonet.all@gmail.com"; //填入msn/yahoo聯絡人,勿使用這個預設值 String ret = Register(Email,SPID); out.println("註冊聯絡人:" + ret + " "); //發訊息 String strMsg = "Hello_World!"; //輸入訊息 (未做 Url EnCoded) String MsgRet = SendMsg(Email,strMsg,SPID); out.println("傳送訊息:" + MsgRet + " "); %> <%! //取得SPID public static String GETSPID(String UserName,String Password) throws Exception { String strUrl = ...