Package weibo4j

Examples of weibo4j.User


        if(file==null){
          System.out.println("file is null");
          System.exit(-1);
        }
       
        User user = weibo.updateProfileImage(file);

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


   */
  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
    try {
      User user = getWeibo(true,args).showUser(args[2]);
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   */
  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
    try {
      User user = getWeibo(true,args).createFriendship(args[2]);//args[2]:关注用户的id
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   */
  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
    try {
      User user = getWeibo(true,args).destroyFriendship(args[2]);//args[2]:关注用户的id
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   */
  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
    try {
      User user = getWeibo(true,args).verifyCredentials();
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
        try {
          Weibo weibo = getWeibo(true,args);
          User user = weibo.endSession();
          System.out.println(user.toString());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of weibo4j.User

Copyright © 2018 www.massapicom. 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.