Examples of PostParameter


Examples of weibo4j.model.PostParameter

   */
  public User destroyFriendshipsDestroyByName(String screen_name)
      throws WeiboException {
    return new User(Weibo.client.post(
        WeiboConfig.getValue("baseURL") + "friendships/destroy.json",
        new PostParameter[] { new PostParameter("screen_name",
            screen_name) }).asJSONObject());
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   * @since JDK 1.5
   */
  public User showUserById(String uid) throws WeiboException {
    return new User(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "users/show.json",
        new PostParameter[] { new PostParameter("uid", uid) })
        .asJSONObject());
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   * @since JDK 1.5
   */
  public User showUserByScreenName(String screen_name) throws WeiboException {
    return new User(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "users/show.json",
        new PostParameter[] { new PostParameter("screen_name",
            screen_name) }).asJSONObject());
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   * @since JDK 1.5
   */
  public User showUserByDomain(String domain) throws WeiboException {
    return new User(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "users/domain_show.json",
        new PostParameter[] { new PostParameter("domain", domain) })
        .asJSONObject());
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   *      href="http://open.weibo.com/wiki/2/users/domain_show">users/domain_show</a>
   * @since JDK 1.5
   */
  public JSONArray getUserCount(String uids) throws WeiboException{
    return  Weibo.client.get(WeiboConfig.getValue("baseURL") + "users/counts.json",
        new PostParameter[] { new PostParameter("uids", uids)}).asJSONArray();
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

public class Search {
  //---------------------------------搜索接口-----------------------------------------------
 
  public JSONArray searchSuggestionsUsers(String q) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"search/suggestions/users.json",new PostParameter[]{
      new PostParameter("q", q)
    }).asJSONArray();
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

      new PostParameter("q", q)
    }).asJSONArray();
  }
  public JSONArray searchSuggestionsUsers(String q,int count) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"search/suggestions/users.json",new PostParameter[]{
      new PostParameter("q", q),
      new PostParameter("count", count)
    }).asJSONArray();
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

      new PostParameter("count", count)
    }).asJSONArray();
  }
  public JSONArray searchSuggestionsStatuses(String q) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"search/suggestions/statuses.json",new PostParameter[]{
      new PostParameter("q", q)
    }).asJSONArray();
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

      new PostParameter("q", q)
    }).asJSONArray();
  }
  public JSONArray searchSuggestionsStatuses(String q,int count) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"search/suggestions/statuses.json",new PostParameter[]{
      new PostParameter("q", q),
      new PostParameter("count", count)
    }).asJSONArray();
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

      new PostParameter("count", count)
    }).asJSONArray();
  }
  public JSONArray searchSuggestionsCompanies(String q) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"search/suggestions/companies.json",new PostParameter[]{
      new PostParameter("q", q)
    }).asJSONArray();
  }
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.