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
71e24d86
Commit
71e24d86
authored
Dec 08, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/jpush/jpush-api-python-client
into dev
parents
0a682d08
da56ec3f
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 @
71e24d86
...
@@ -7,11 +7,7 @@
...
@@ -7,11 +7,7 @@
## 兼容版本
## 兼容版本
+
Python 2.7
+
Python 2.7
+
Python 3 ,可以运行,建议继续使用 jpush 3.1.2 ,经过完整测试后会发布新版本。
+
Python 3
建议 Python3 的开发者继续使用 jpush 3.1.2,pip 地址:
> https://pypi.python.org/pypi?:action=display&name=jpush&version=3.1.2
## 环境配置
## 环境配置
...
...
examples/push_examples/example_platformmsg.py
View file @
71e24d86
...
@@ -7,5 +7,6 @@ push.audience = jpush.all_
...
@@ -7,5 +7,6 @@ push.audience = jpush.all_
ios_msg
=
jpush
.
ios
(
alert
=
"Hello, IOS JPush!"
,
badge
=
"+1"
,
sound
=
"a.caf"
,
extras
=
{
'k1'
:
'v1'
})
ios_msg
=
jpush
.
ios
(
alert
=
"Hello, IOS JPush!"
,
badge
=
"+1"
,
sound
=
"a.caf"
,
extras
=
{
'k1'
:
'v1'
})
android_msg
=
jpush
.
android
(
alert
=
"Hello, android msg"
)
android_msg
=
jpush
.
android
(
alert
=
"Hello, android msg"
)
push
.
notification
=
jpush
.
notification
(
alert
=
"Hello, JPush!"
,
android
=
android_msg
,
ios
=
ios_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
.
platform
=
jpush
.
all_
push
.
send
()
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