-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.py
More file actions
35 lines (25 loc) · 728 Bytes
/
test.py
File metadata and controls
35 lines (25 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
'''
Created on 2012-7-3
@author: lihao
'''
import top.api
import json
top.setDefaultAppInfo("xxxx", "xxxx")
class TaobaoWordCommand(object):
def get_word_command(self,user_id="xxxx",text="粉丝优惠券",url="https://uland.taobao.com/",logo="https://uland.taobao.com/"):
req = top.api.TbkTpwdCreateRequest()
req.user_id= user_id
req.text= text
req.url=url
req.logo= logo
req.ext="{}"
try:
resp= req.getResponse()
print(resp)
return resp
except Exception as e:
return e
if __name__ =="__main__":
word_command = TaobaoWordCommand()
word_command.get_word_command()