-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush.py
More file actions
38 lines (24 loc) · 736 Bytes
/
Copy pathpush.py
File metadata and controls
38 lines (24 loc) · 736 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
36
#!/usr/bin/python
# _*_ coding: UTF-8 _*_
from Channel import *
import sys
import time
#sys.path.append("..")
#以下只是测试数据,请使用者自行修改为可用数据
apiKey = "suQGf79FbjyvCg42Bg44qWsy"
secretKey = "dGr0lMX93E7kIruy6K5pNh1aifA1PLHY"
#user_id = "1578491886"
#channel_id = "3946349904645840715"
#message = "{'title':'baidu push','description':'message from python sdk'}"
#message = json.dumps(message)
#message_key = "key1"
#message_key = json.dumps(message_key)
#tagname = "test_tag"
def test_queryBindList():
c = Channel(apiKey, secretKey)
#optional = dict()
#optional[Channel.CHANNEL_ID] = channel_id
c.queryBindList()
#print ret
if __name__ == '__main__':
test_queryBindList()