예제 #1
0
 /**
  * 获取微博官方表情的详细信息
  *
  * @param type 表情类别,face:普通表情、ani:魔法表情、cartoon:动漫表情,默认为face
  * @param language 语言类别,cnname:简体、twname:繁体,默认为cnname
  * @return Emotion
  * @throws WeiboException when Weibo service or network is unavailable
  * @version weibo4j-V2 1.0.0
  * @see <a href="http://open.weibo.com/wiki/2/emotions">emotions</a>
  * @since JDK 1.5
  */
 public List<Emotion> getEmotions(String type, String language) throws WeiboException {
   return Emotion.constructEmotions(
       client.get(
           WeiboConfig.getValue("baseURL") + "emotions.json",
           new PostParameter[] {
             new PostParameter("type", type), new PostParameter("language", language)
           }));
 }
예제 #2
0
 /**
  * 获取微博官方表情的详细信息
  *
  * @return Emotion
  * @throws WeiboException when Weibo service or network is unavailable
  * @version weibo4j-V2 1.0.0
  * @see <a href="http://open.weibo.com/wiki/2/emotions">emotions</a>
  * @since JDK 1.5
  */
 public List<Emotion> getEmotions() throws WeiboException {
   return Emotion.constructEmotions(client.get(WeiboConfig.getValue("baseURL") + "emotions.json"));
 }
예제 #3
0
파일: Timeline.java 프로젝트: chenjw/spider
 /**
  * 获取微博官方表情的详细信息
  *
  * @return Emotion
  * @throws WeiboException when Weibo service or network is unavailable
  * @version weibo4j-V2 1.0.0
  * @see <a href="http://open.weibo.com/wiki/2/emotions">emotions</a>
  * @since JDK 1.5
  */
 public List<Emotion> getEmotions() throws WeiboException {
   return Emotion.constructEmotions(
       client.get(WeiboConfig.getWeiboInfo().getBaseUrl() + "emotions.json"));
 }