Package weibo4j.examples.trends

Source Code of weibo4j.examples.trends.IsFollow

package weibo4j.examples.trends;

import org.json.JSONObject;

import weibo4j.Trend;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.WeiboException;

public class IsFollow {

  public static void main(String[] args) {
    String access_token = args[0];
    String trend_name = args[1];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    try {
      JSONObject result = tm.isFollow(trend_name);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of weibo4j.examples.trends.IsFollow

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.