File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# please put your app_key and master_secret here
22app_key = u'6be9204c30b9473e87bad4dc'
3- master_secret = u'a564b268ba23631a8a34e687 '
3+ master_secret = u'a19bef7870c55d7e51f4c4f0 '
Original file line number Diff line number Diff line change 99# the default logging level is WARNING,if you set the logging level to "DEBUG",the it will show the debug logging
1010_jpush .set_logging ("DEBUG" )
1111push .audience = jpush .all_
12- push .notification = jpush .notification (alert = "hello python jpush api" )
12+ push .notification = jpush .notification (alert = "! hello python jpush api" )
1313push .platform = jpush .all_
1414try :
1515 response = push .send ()
2020except common .JPushFailure :
2121 print ("JPushFailure" )
2222except :
23- print ("Exception" )
23+ print ("Exception" )
Original file line number Diff line number Diff line change 22import logging
33import requests
44
5- BASE_URL = "https://api.jpush.cn/"
5+ BASE_URL = " https://api.jpush.cn/"
66PUSH_URL = BASE_URL + 'v3/push'
77VALIDATE_PUSH_URL = BASE_URL + 'v3/push/validate'
88
You can’t perform that action at this time.
0 commit comments