| | |
| | | }
|
| | |
|
| | | }
|
| | | |
| | | //淘礼金创建
|
| | | |
| | | public static void getLiJin()
|
| | | {
|
| | | Map<String, String> map = new HashMap<>();
|
| | | map.put("method", "taobao.tbk.dg.vegas.tlj.create");
|
| | | map.put("adzone_id", TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT.split("_")[3]);
|
| | | map.put("item_id", "538982295340");
|
| | | map.put("total_num", "1");
|
| | | map.put("name", "返利券新人淘礼金红包");
|
| | | map.put("user_total_win_num_limit", "1");
|
| | | map.put("security_switch", "false");
|
| | | map.put("per_face", "1.00");
|
| | | map.put("send_start_time", "2019-05-27 00:00:00");
|
| | | map.put("send_end_time", "2019-06-01 00:00:00");
|
| | | map.put("use_end_time", "1");
|
| | | map.put("use_end_time_mode", "1");
|
| | | map.put("use_start_time", "2019-05-27 00:00:00");
|
| | | |
| | | TaoKeAppInfo app = new TaoKeAppInfo();
|
| | | app.setAppKey( TaoBaoConstant.TAOBAO_AUTH_APPKEY);
|
| | | app.setAppSecret( TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
|
| | | try {
|
| | | JSONObject json = TaoKeBaseUtil.baseRequest(map,app);
|
| | | System.out.println(json);
|
| | | } catch (TaoKeApiException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | | |
| | | //lCj1Alo8b9L4Ed6yJLq6iqJ7%2BkHL3AEW
|
| | | |
| | | |
| | | public static void getLiJinXG()
|
| | | {
|
| | | Map<String, String> map = new HashMap<>();
|
| | | map.put("method", "taobao.tbk.dg.vegas.tlj.instance.report");
|
| | | map.put("rights_id", "ZrIIvF%2Fnd7SlL5Bg59eTK6J7%2BkHL3AEW");
|
| | | |
| | | TaoKeAppInfo app = new TaoKeAppInfo();
|
| | | app.setAppKey( TaoBaoConstant.TAOBAO_AUTH_APPKEY);
|
| | | app.setAppSecret( TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
|
| | | try {
|
| | | JSONObject json = TaoKeBaseUtil.baseRequest(map,app);
|
| | | System.out.println(json);
|
| | | } catch (TaoKeApiException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|