| | |
| | | |
| | | public static void main(String[] args) { |
| | | //getGroups(); |
| | | |
| | | //playMusic(); |
| | | getItemList(); |
| | | } |
| | | |
| | | public static void login(){ |
| | |
| | | |
| | | public static String getGroups(){ |
| | | String result = HttpUtils.post("GetGroups",new JSONObject()); |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | | |
| | | public static String getItemList(){ |
| | | String result = HttpUtils.post("GetItemList",new JSONObject()); |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | | |
| | | public static String playMusic(){ |
| | | JSONObject jsonObject = new JSONObject(); |
| | | String[] ms = new String[]{"https://szpipe.thhy-tj.com/jingbao.mp3"}; |
| | | |
| | | jsonObject.put("Files",ms); |
| | | jsonObject.put("TextCode",1); |
| | | String result = HttpUtils.post("PlayMp3",jsonObject); |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | | } |