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
4439b397
Commit
4439b397
authored
May 17, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix readme
parent
deaf06e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
README.rst
README.rst
+2
-1
No files found.
README.rst
View file @
4439b397
...
@@ -14,7 +14,7 @@ JPush API Python Client
...
@@ -14,7 +14,7 @@ JPush API Python Client
JPush's officially supported Python client library for accessing JPush APIs.
JPush's officially supported Python client library for accessing JPush APIs.
JPush Rest API Documents: `http://docs.jpush.
cn/display/dev/REST+API <http://docs.jpush.cn/display/dev/REST+API
/>`_
JPush Rest API Documents: `http://docs.jpush.
io/server/rest_api_v3_push/ <http://docs.jpush.io/server/rest_api_v3_push
/>`_
You can download the latest release file here: `Releases <https://github.com/jpush/jpush-api-python-client/releases>`_
You can download the latest release file here: `Releases <https://github.com/jpush/jpush-api-python-client/releases>`_
...
@@ -65,6 +65,7 @@ Simple iOS Push
...
@@ -65,6 +65,7 @@ Simple iOS Push
>>> push = _jpush.create_push()
>>> push = _jpush.create_push()
>>> push.audience = jpush.all_
>>> 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")
>>> 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.options = {"time_to_live":86400, "sendno":12345,"apns_production":True}
>>> push.options = {"time_to_live":86400, "sendno":12345,"apns_production":True}
>>> push.platform = jpush.platform("ios")
>>> push.platform = jpush.platform("ios")
...
...
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