Package weibo4j

Examples of weibo4j.Weibo


import weibo4j.org.json.JSONObject;

public class GetMentionsIds {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONObject ids = tm.getFriendsTimelineIds();
      Log.logInfo(ids.toString());
    } catch (WeiboException e) {
View Full Code Here


import weibo4j.org.json.JSONArray;

public class GetCommentsWeekly {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONArray status = tm.getCommentsWeekly();
      Log.logInfo(status.toString());
View Full Code Here

public class Destroy {

  public static void main(String[] args) {   
    String access_token = args[0];
    String id =  args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.Destroy(id);
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
View Full Code Here

public class GetRepostTimelineIds {
  public static void main(String[] args) {
    String access_token = args[0];
    String id = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONObject ids = tm.getRepostTimelineIds(id);
      Log.logInfo(ids.toString());
    } catch (WeiboException e) {
View Full Code Here

public class GetFriendsTimeline {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getFriendsTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
View Full Code Here

public class UpdateStatus {

  public static void main(String[] args) {
    String access_token = args[0];
    String statuses = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.UpdateStatus(statuses);
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
View Full Code Here

public class GetHomeTimeline {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getHomeTimeline();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
View Full Code Here

public class GetRepostByMe {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getRepostByMe();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
View Full Code Here

public class ShowStatus {

  public static void main(String[] args) {
    String access_token = args[0];
    String id = args[1];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      Status status = tm.showStatus(id);

        Log.logInfo(status.toString());
View Full Code Here

public class GetEmotions {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      List<Emotion> emotions =  tm.getEmotions();
      for(Emotion e : emotions){
        Log.logInfo(e.toString());
View Full Code Here

TOP

Related Classes of weibo4j.Weibo

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.