Examples of UploadStatus()


Examples of weibo4j.Timeline.UploadStatus()

        System.out.println("content length:" + content.length);
        ImageItem pic=new ImageItem("pic",content);

        String s=java.net.URLEncoder.encode( args[1],"utf-8");
        Timeline tl = new Timeline();
        Status status=tl.UploadStatus(s, pic);

        System.out.println("Successfully upload the status to ["
            +status.getText()+"].");
      }
      catch(Exception e1){
View Full Code Here

Examples of weibo4j.Timeline.UploadStatus()

        System.out.println("content length:" + content.length);
        ImageItem pic = new ImageItem("pic", content);
        String s = java.net.URLEncoder.encode(args[1], "utf-8");
        Timeline tl = new Timeline();
        tl.client.setToken(args[0]);// access_token
        Status status = tl.UploadStatus(s, pic);

        System.out.println("Successfully upload the status to [" + status.getText() + "].");
      } catch (Exception e1) {
        e1.printStackTrace();
      }
View Full Code Here

Examples of weibo4j.Weibo.uploadStatus()

          System.out.println("file is null");
          System.exit(-1);
        }
       
        String msg = URLEncoder.encode("中文内容", "UTF-8");
        Status status = weibo.uploadStatus(msg + "cvvbqwe1343", file);

        System.out.println("Successfully upload the status to ["
            + status.getText() + "].");
       
      } catch (Exception e1) {
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.