| | |
| | |
|
| | | return goodsList;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 淘宝客-推广者-官方活动信息获取
|
| | | * @Title: getActivityInfo
|
| | | * @Description: |
| | | * @param activityMaterialId
|
| | | * @param pid
|
| | | * @param relationId
|
| | | * @return |
| | | * String 返回类型
|
| | | * @throws
|
| | | */
|
| | | public static String getActivityInfo(String activityMaterialId, String pid, String relationId) {
|
| | | Map<String, String> map = new HashMap<>();
|
| | | map.put("method", "taobao.tbk.activity.info.get");
|
| | | map.put("activity_material_id", activityMaterialId);
|
| | | map.put("adzone_id", pid.split("_")[3] + "");
|
| | | map.put("relation_id", relationId);
|
| | |
|
| | | JSONObject resultJSON = null;
|
| | | try {
|
| | | resultJSON = TaoKeBaseUtil.baseRequest(map,
|
| | | new TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, TaoBaoConstant.TAOBAO_AUTH_APPSECRET, pid));
|
| | | JSONObject response = resultJSON.optJSONObject("tbk_activity_info_get_response");
|
| | | if (response != null && response.optJSONObject("data") != null) {
|
| | | return response.optJSONObject("data").optString("click_url");
|
| | | }
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | return null;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | class QuanInfo {
|