Examples of PublicService


Examples of com.pccw.service.acrm.PublicService

        proxyFactory.setLocalEnabled(true);
        proxyFactory.setHessian2Reply(false);
       // proxyFactory.setDebug(true);
        HessianCAHProxyFactory.setCookieSeterName("Set-Cookie");
        try {
           PublicService api=proxyFactory.create(PublicService.class, url,
               new DefaultCacheHandler(),
               new CRMAsynTaskExecuter<Object, Throwable>(),
               new CRMExceptionHandler(),null);
          // parseAnnotations(api.getClass());
          //Thread.sleep(1000);
          //System.out.println(api.login("guxuede", "123456"));
        //  System.out.println(GxdInputStream.getAccumulatTotalLength());
        //  System.out.println(api.getAllAccountList());
         
//          api.login("guxuede","123456",new CRMDefaultTaskListener<Staff,Throwable>(){
//            @Override
//            public void onExecuteSuccess(Method method, Object[] args,Staff result) {
//              System.out.println("login sucess:"+result);
//            }
//            @Override
//            public void onExceptionOccured(Method method, Object[] args,Throwable exception) {
//              //exception.printStackTrace();
//              System.out.println("异常:"+exception);
//            }
//          });
          
          System.out.println(api.login("guxuede","123456"));
         System.out.println(api.getLoginUser());
//           System.out.println(api.login("guxuede","123456"));
//          Thread.sleep(15000);
//          System.out.println(api.login("guxuede","123456"));
    } catch (Exception e) {
      //System.out.println(e.getCause());
View Full Code Here

Examples of weibo4j.PublicService

   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    String province = args[1];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    JSONArray jo;
    try {
      jo = ps.cityList(province);
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

View Full Code Here

Examples of weibo4j.PublicService

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    try {
      JSONObject jo = ps.getTomeZone();
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

View Full Code Here

Examples of weibo4j.PublicService

   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    String country = args[1];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    try {
      JSONArray jo = ps.provinceList(country);
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

View Full Code Here

Examples of weibo4j.PublicService

   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    String codes = args[1];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    try {
      JSONArray jo = ps.getLocationByCode(codes);
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

View Full Code Here

Examples of weibo4j.PublicService

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    try {
      JSONArray jo = ps.countryList();
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.