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
7982c543
Commit
7982c543
authored
Apr 20, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add report api example
parent
a0004990
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
example_messages.py
examples/report/example_messages.py
+7
-0
example_received.py
examples/report/example_received.py
+2
-2
common.py
jpush/common.py
+1
-1
No files found.
examples/report/example_messages.py
0 → 100644
View file @
7982c543
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
report
=
_jpush
.
create_report
();
report
.
get_messages
(
"3289406737"
)
\ No newline at end of file
examples/report/example_received.py
View file @
7982c543
...
...
@@ -3,4 +3,4 @@ from conf import app_key, master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
report
=
_jpush
.
create_report
();
report
.
get_messages
(
"3289406737"
)
\ No newline at end of file
report
.
get_received
(
"3289406737"
)
\ No newline at end of file
jpush/common.py
View file @
7982c543
...
...
@@ -13,7 +13,7 @@ TAGLIST_URL = TAG_URL
ALIAS_URL
=
DEVICE_BASEURL
+
"v3/aliases/"
REPORT_BASEURL
=
"https://report.jpush.cn/"
RECEIVED_URL
=
REPORT_BASEURL
+
"v3/received"
RECEIVED_URL
=
REPORT_BASEURL
+
"v3/received
?msg_ids=
"
MESSAGES_URL
=
REPORT_BASEURL
+
"v3/messages?msg_ids="
USERS_URL
=
REPORT_BASEURL
+
"v3/users?"
...
...
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