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
27619687
Commit
27619687
authored
Jun 02, 2014
by
hupantingxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating example files;
parent
77789b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples.rst
examples/examples.rst
+4
-4
No files found.
examples/examples.rst
View file @
27619687
...
...
@@ -16,7 +16,7 @@ Simple broadcast to all devices
push = jpush.create_push()
push.audience = jpush.all_
push.notification = jpush.notification(alert="Hello, world!")
push.
device_types
= jpush.all_
push.
platform
= jpush.all_
push.send()
...
...
@@ -33,12 +33,12 @@ Complex audience with iOS & Android specifics
)
push.notification = jpush.notification(
ios=jpush.ios(
alert="
Kim Jong-Un wins U.S. Open
",
alert="
JPush ios test
",
badge="+1",
extra={"articleid": "123456"}
),
android=jpush.android(
alert="Breaking Special Android News!
Glorious Leader Kim Jong-Un wins U.S. Open!
",
alert="Breaking Special Android News!",
extra={"articleid": "http://m.example.com/123456"}
)
)
...
...
@@ -54,6 +54,6 @@ Single iOS push
push = jpush.create_push()
push.audience = jpush.registration_id('fffffffffff')
push.notification = jpush.notification(
ios=jpush.ios(alert="
Kim Jong-Un is following you on Twitter
"))
ios=jpush.ios(alert="
JPush powers your apps
"))
push.platform = jpush.platform('ios')
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