Commit bd1b6010 by 岳巧源

vc.py

parent 90bba0cc
Showing with 14 additions and 12 deletions
......@@ -455,10 +455,11 @@ def create_vc_promotion():
"activityBaseDTO": {
"@type": "com.jd.promo.activity.sdk.model.ActivityBaseDTO",
"name": "内部促销活动测试",
"type": 26,
"type": 1,
"beginTime": "2024-11-05 00:14:00",
"endTime": "2024-11-15 10:42:00",
"endTime": "2024-11-15 11:50:00",
"bound": 1,
"extType": 15,
"venderType": 1,
# "venderId": 10457263
"venderId": 1000511925
......@@ -468,8 +469,9 @@ def create_vc_promotion():
"channelList": [
"1",
],
}
}
},
},
"stepSubmit": True
}
}
ans = request_to_jd_vc_dev(method_name, token, app_key, app_secret, param)
......@@ -481,7 +483,7 @@ def create_vc_promotion():
"""
def vc_promotion_add_sku():
method_name = "jingdong.promo.activity.addSkus"
token = "845ce8478b074103b9e78a769d5fa4831y2u"
token = "8a4a6810c5834412b8d4692dbf80cf9b0yty"
app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = {
......@@ -493,7 +495,7 @@ def vc_promotion_add_sku():
"@type": "com.jd.promo.activity.sdk.model.ActivityParticipantDTO",
"bound": 1,
"bindType": 1,
"activityId": 3000001,
"activityId": 63137688146,
"activitySkuDTOList": [
{
"@type": "com.jd.promo.activity.sdk.model.ActivitySkuDTO",
......@@ -508,7 +510,7 @@ def vc_promotion_add_sku():
}
}
}
ans = request_to_jd_vc(method_name, token, app_key, app_secret, param)
ans = request_to_jd_vc_dev(method_name, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
......@@ -529,16 +531,16 @@ def commit_vc_activity():
def delete_vc_activity():
method_name = "jingdong.promo.activity.remove"
token = "845ce8478b074103b9e78a769d5fa4831y2u"
token = "8a4a6810c5834412b8d4692dbf80cf9b0yty"
app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
app_secret = "c92691b2379c48de87e699c4c2f7fb32"
param = {
"activityId": 3000001
"activityId": 63137688142
}
ans = request_to_jd_vc(method_name, token, app_key, app_secret, param)
ans = request_to_jd_vc_dev(method_name, token, app_key, app_secret, param)
print(json.dumps(ans, ensure_ascii=False))
if __name__ == '__main__':
create_vc_promotion()
\ No newline at end of file
delete_vc_activity()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment