Commit 249539f6 authored by fendouai's avatar fendouai

fix version

parent ec0bf892
# please put your app_key and master_secret here # please put your app_key and master_secret here
app_key = u'6be9204c30b9473e87bad4dc' app_key = u'6be9204c30b9473e87bad4dc'
master_secret = u'a564b268ba23631a8a34e687' master_secret = u'a19bef7870c55d7e51f4c4f0'
...@@ -9,7 +9,7 @@ push = _jpush.create_push() ...@@ -9,7 +9,7 @@ push = _jpush.create_push()
# the default logging level is WARNING,if you set the logging level to "DEBUG",the it will show the debug logging # the default logging level is WARNING,if you set the logging level to "DEBUG",the it will show the debug logging
_jpush.set_logging("DEBUG") _jpush.set_logging("DEBUG")
push.audience = jpush.all_ push.audience = jpush.all_
push.notification = jpush.notification(alert="hello python jpush api") push.notification = jpush.notification(alert="!hello python jpush api")
push.platform = jpush.all_ push.platform = jpush.all_
try: try:
response=push.send() response=push.send()
......
...@@ -2,7 +2,7 @@ import json ...@@ -2,7 +2,7 @@ import json
import logging import logging
import requests import requests
BASE_URL = "https://api.jpush.cn/" BASE_URL = " https://api.jpush.cn/"
PUSH_URL = BASE_URL + 'v3/push' PUSH_URL = BASE_URL + 'v3/push'
VALIDATE_PUSH_URL = BASE_URL + 'v3/push/validate' VALIDATE_PUSH_URL = BASE_URL + 'v3/push/validate'
......
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 to comment