Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
jpush-api-python-client
Commits
13cf99fb
Commit
13cf99fb
authored
Jul 18, 2017
by
Helperhaps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add get_cid method
parent
d5315fc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
core.py
jpush/push/core.py
+10
-0
No files found.
jpush/push/core.py
View file @
13cf99fb
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment