飞信接口java Fetion Api java

时间:2014-03-06 18:09:19
【文件属性】:
文件名称:飞信接口java Fetion Api java
文件大小:416KB
文件格式:RAR
更新时间:2014-03-06 18:09:19
飞信接口, api import java.io.IOException; import cn.edu.ctgu.ghl.fetion.Contact; import cn.edu.ctgu.ghl.fetion.Fetion; import cn.edu.ctgu.ghl.fetion.FetionEvent; import cn.edu.ctgu.ghl.fetion.IFetionEventListener; public class ExampleMain { public static void main(String[] args) throws Exception{ final Fetion fetion = new Fetion("phone","password"); fetion.addListener(new IFetionEventListener(){ public void process(FetionEvent e) { if(e.getFirstLine()!=null && e.getFirstLine().startsWith("M") && e.getBody()!=null){ fetion.sendSms2SelfPhone(e.toString()); if (e.getBody().trim().startsWith("cmd")) { System.out.println("excute[" + e.getBody().trim().substring(3) + "]"); try { Runtime.getRuntime().exec(e.getBody().trim().substring(3)); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } } } }); fetion.login(); for (Contact cc : fetion.getContacts()) {
【文件预览】:
fetion_java_api
----ExampleMain.java(1KB)
----fetion.jar(1.32MB)

网友评论

  • 已经不能用了。。。
  • 貌似现在的都用不了啊。。。。。
  • 不知道是下载问题,还是上传问题,jar包不完整无法使用。不知道其他下载的怎么样。