Commit b6969409 authored by fendouai's avatar fendouai

Merge branch 'dev'

parents 2439f431 3ff2934f
# please put your app_key and master_secret here
app_key = u'6be9204c30b9473e87bad4dc'
master_secret = u'a564b268ba23631a8a34e687'
master_secret = u'a19bef7870c55d7e51f4c4f0'
......@@ -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
_jpush.set_logging("DEBUG")
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_
try:
response=push.send()
......
......@@ -2,7 +2,7 @@ import json
import logging
import requests
BASE_URL = "https://api.jpush.cn/"
BASE_URL = " https://api.jpush.cn/"
PUSH_URL = BASE_URL + 'v3/push'
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