Package weibo4j.model

Examples of weibo4j.model.PostParameter


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


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

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

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

   * @see <a href="http://open.weibo.com/wiki/2/tags">tags</a>
   * @since JDK 1.5
   */
  public List<Tag> getTags(String uid) throws WeiboException {
    return Tag.constructTags(Weibo.client.get(WeiboConfig.getValue("baseURL")
            + "tags.json", new PostParameter[] { new PostParameter(
            "uid", uid) }));
  }
View Full Code Here

   */
  public List<Tag> getTags(String uid, Paging page) throws WeiboException {
    return Tag
        .constructTags(Weibo.client.get(WeiboConfig.getValue("baseURL")
            + "tags.json", new PostParameter[] {
          new PostParameter("uid", uid) }, page));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public TagWapper getTagsBatch(String uids) throws WeiboException {
    return Tag.constructTagWapper(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "tags/tags_batch.json",
        new PostParameter[] { new PostParameter("uids", uids) }));
  }
View Full Code Here

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

   * @see <a href="http://open.weibo.com/wiki/2/tags/destroy">tags/destroy</a>
   * @since JDK 1.5
   */
  public JSONObject destoryTag(Integer tag_id) throws WeiboException {
      return Weibo.client.post(WeiboConfig.getValue("baseURL") + "tags/destroy.json",
              new PostParameter[] { new PostParameter("tag_id",
                  tag_id.toString()) }).asJSONObject();
  }
View Full Code Here

   * @since JDK 1.5
   */
  public List<Tag> destroyTagsBatch(String ids) throws WeiboException {
    return Tag.constructTags(Weibo.client.post(
        WeiboConfig.getValue("baseURL") + "tags/destroy_batch.json",
        new PostParameter[] { new PostParameter("ids", ids) }));
  }
View Full Code Here

TOP

Related Classes of weibo4j.model.PostParameter

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.