jpush-api-python-client icon indicating copy to clipboard operation
jpush-api-python-client copied to clipboard

JPush's officially supported Python client library for accessing JPush APIs. 极光推送官方支持的 Python 版本服务器端 SDK。

Results 5 jpush-api-python-client issues
Sort by recently updated
recently updated
newest added

在调用push.send()后仅能看到{"sendno":"0","msg_id":"*********"} 建议将header中的数据添加到response中 如jpush/push/core.py的PushResponse中 def __init__(self, response): self.status_code = response.status_code data = response.json() **for (key, value) in response.headers.items(): data[key] = value** self.payload = data

There are non ascii characters in https://github.com/jpush/jpush-api-python-client/blob/470d2d027c518f18245f0a8a61c93e440a76b551/jpush/common.py#L84, this will raise ```SyntaxError: Non-ASCII character '\xe4' in file /app/.heroku/python/lib/python2.7/site-packages/jpush/common.py on line 84, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details``` error in...

文件推送还不支持

日志: ``` DEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers: user-agent: jpush-api-python-client connection: keep-alive content-type: application/json;charset:utf-8 Body: {"audience": {"registration_id": ["abcdabcd"]}, "platform": "all", "message": {"msg_content": "by_reg_id", "title": "helloworld"}} DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1):...