Git Product home page Git Product logo

xinge-api-python's People

Contributors

caofangkun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xinge-api-python's Issues

请求信息正确的情况下调用 QueryDeviceCount 方法会出现 JSON 解析错误

string(63) "查询失败:Table 'tpns_data.t_2100311092_token' doesn't exist"
{"ret_code":0,"err_msg":"","result":{"device_num":0}}
Traceback (most recent call last):
  File "/home/wujinwen/Codes/Python/web/D3/notification_common_service/notification_service/xinge/push_core.py", line 228, in <module>
    result = app.QueryDeviceCount()
  File "/home/wujinwen/.virtualenvs/notification_common_service/local/lib/python2.7/site-packages/xinge_push/xinge.py", line 331, in QueryDeviceCount
    ret = self.Request(self.PATH_GET_DEV_NUM, params)
  File "/home/wujinwen/.virtualenvs/notification_common_service/local/lib/python2.7/site-packages/xinge_push/xinge.py", line 106, in Request
    return XingeHelper.Request(path, params)
  File "/home/wujinwen/.virtualenvs/notification_common_service/local/lib/python2.7/site-packages/xinge_push/xinge.py", line 542, in Request
    retDict = json.loads(data)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

这个库还更新吗??

信鸽里最新版的消息体,IOS中的badge改成了badge_type,造成现在发送的消息可以收到,但是角标没有.
我看现在库里还是badge.
这个怎么解决?

SetPushParams json.dumps

xinge.py
101: params['message'] = json.dumps(msgObj, separators=(',',':'), ensure_ascii=False)

use param: "ensure_ascii=False" may lead to :

516: return hashlib.md5(signSource).hexdigest()

"UnicodeEncodeError: 'ascii' codec can't encode characters"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.