Skip to content

emoji_api

Yi Li edited this page May 18, 2016 · 1 revision

@since 2.7.1

API 微信表情解析,适用于UserAPI、SnsAPI.

   int emoji_type = 1;
   User user = UserAPI.userInfo("access_token","openid",emoji_type);
   System.out.println(user.getNickname_emoji());
   
   //示例 nickname = "popular🍀" 
   //when emoji_type=0   output null
   //when emoji_type=1   output popular🍀 
   //when emoji_type=2   output popular<span class='emoji emoji1f340'></span>
   //when emoji_type=3   output popular:four_leaf_clover:
   //when emoji_type=4   output popular&#127808;
   //when emoji_type=5   output popular

API 列表

Clone this wiki locally