Commit 13cf99fb authored by Helperhaps's avatar Helperhaps

add get_cid method

parent d5315fc9
...@@ -66,6 +66,16 @@ class Push(object): ...@@ -66,6 +66,16 @@ class Push(object):
response = self._jpush._request('POST', body, common.VALIDATE_PUSH_URL, 'application/json', version=3) response = self._jpush._request('POST', body, common.VALIDATE_PUSH_URL, 'application/json', version=3)
return PushResponse(response) return PushResponse(response)
def get_cid(self, count, type = None):
body = None
url = common.VALIDATE_PUSH_URL + '/cid'
params = {
'count': count,
'type': type
}
response = self._jpush._request('GET', body, common.VALIDATE_PUSH_URL, 'application/json', version=3, params = params)
return PushResponse(response)
class PushResponse(object): class PushResponse(object):
"""Response to a successful push notification send. """Response to a successful push notification send.
......
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