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
49e4df25
Commit
49e4df25
authored
Dec 02, 2014
by
hupantingxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Readme.rst for testing;
parent
4f23ad15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
README.rst
README.rst
+7
-3
No files found.
README.rst
View file @
49e4df25
...
@@ -49,9 +49,12 @@ or from source:
...
@@ -49,9 +49,12 @@ or from source:
$ sudo python setup.py install
$ sudo python setup.py install
------------
-------
Run Tests
Testing
------------
-------
For running the tests, you need the standard `unittest` module, shipped
with Python.
To run jpush-api-python-client tests, simply:
To run jpush-api-python-client tests, simply:
.. code-block:: sh
.. code-block:: sh
...
@@ -72,6 +75,7 @@ Simple iOS Push
...
@@ -72,6 +75,7 @@ Simple iOS 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'})
>>> 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.platform = jpush.platform("ios")
>>> push.platform = jpush.platform("ios")
>>> 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