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
b349a3d6
Commit
b349a3d6
authored
Oct 12, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the example and readme
parent
846c1534
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
README.md
README.md
+1
-5
example_platformmsg.py
examples/push_examples/example_platformmsg.py
+1
-0
No files found.
README.md
View file @
b349a3d6
...
...
@@ -7,11 +7,7 @@
## 兼容版本
+
Python 2.7
+
Python 3 ,可以运行,建议继续使用 jpush 3.1.2 ,经过完整测试后会发布新版本。
建议 Python3 的开发者继续使用 jpush 3.1.2,pip 地址:
> https://pypi.python.org/pypi?:action=display&name=jpush&version=3.1.2
+
Python 3
## 环境配置
...
...
examples/push_examples/example_platformmsg.py
View file @
b349a3d6
...
...
@@ -7,5 +7,6 @@ push.audience = jpush.all_
ios_msg
=
jpush
.
ios
(
alert
=
"Hello, IOS JPush!"
,
badge
=
"+1"
,
sound
=
"a.caf"
,
extras
=
{
'k1'
:
'v1'
})
android_msg
=
jpush
.
android
(
alert
=
"Hello, android msg"
)
push
.
notification
=
jpush
.
notification
(
alert
=
"Hello, JPush!"
,
android
=
android_msg
,
ios
=
ios_msg
)
push
.
message
=
jpush
.
message
(
"content"
,
extras
=
{
'k2'
:
'v2'
,
'k3'
:
'v3'
})
push
.
platform
=
jpush
.
all_
push
.
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