Package weibo4j

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


        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

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.