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
254ba3cc
Commit
254ba3cc
authored
May 18, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix conf py
parent
5e882ac2
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
35 additions
and
43 deletions
+35
-43
__init__.py
examples/__init__.py
+2
-0
conf.py
examples/conf.py
+1
-0
example_aliasuser.py
examples/device_examples/example_aliasuser.py
+1
-1
example_clrtag.py
examples/device_examples/example_clrtag.py
+1
-1
example_getdevice.py
examples/device_examples/example_getdevice.py
+1
-1
example_rmalias.py
examples/device_examples/example_rmalias.py
+1
-1
example_rmtag.py
examples/device_examples/example_rmtag.py
+1
-1
example_tagexist.py
examples/device_examples/example_tagexist.py
+1
-1
example_taglist.py
examples/device_examples/example_taglist.py
+1
-1
example_tagupduser.py
examples/device_examples/example_tagupduser.py
+1
-1
example_updevice.py
examples/device_examples/example_updevice.py
+1
-1
example_updevicemobile.py
examples/device_examples/example_updevicemobile.py
+1
-1
conf.py
examples/push_examples/conf.py
+0
-3
example_all.py
examples/push_examples/example_all.py
+1
-1
example_audience.py
examples/push_examples/example_audience.py
+1
-1
example_options.py
examples/push_examples/example_options.py
+1
-1
example_platformmsg.py
examples/push_examples/example_platformmsg.py
+1
-1
example_silent.py
examples/push_examples/example_silent.py
+1
-1
example_sms.py
examples/push_examples/example_sms.py
+1
-1
example_validate.py
examples/push_examples/example_validate.py
+1
-1
conf.py
examples/report_examples/conf.py
+0
-2
example_messages.py
examples/report_examples/example_messages.py
+1
-1
example_received.py
examples/report_examples/example_received.py
+1
-1
example_users.py
examples/report_examples/example_users.py
+1
-1
conf.py
examples/schedule_examples/conf.py
+0
-2
example_delete_schedule.py
examples/schedule_examples/example_delete_schedule.py
+1
-1
example_get_schedule.py
examples/schedule_examples/example_get_schedule.py
+1
-1
example_get_schedule_list.py
examples/schedule_examples/example_get_schedule_list.py
+1
-1
example_post_schedule.py
examples/schedule_examples/example_post_schedule.py
+2
-1
example_put_schedule.py
examples/schedule_examples/example_put_schedule.py
+1
-1
conf.py
tests/conf.py
+1
-0
test_devices.py
tests/devices/test_devices.py
+1
-1
conf.py
tests/push/conf.py
+0
-2
test_audience.py
tests/push/test_audience.py
+1
-1
test_message.py
tests/push/test_message.py
+1
-1
conf.py
tests/report/conf.py
+0
-2
test_report.py
tests/report/test_report.py
+1
-1
conf.py
tests/schedule/conf.py
+0
-2
test_schedule.py
tests/schedule/test_schedule.py
+1
-1
No files found.
examples/__init__.py
0 → 100644
View file @
254ba3cc
"""Python package for using the JPush API"""
from
.conf
import
app_key
,
master_secret
examples/
device_examples/
conf.py
→
examples/conf.py
View file @
254ba3cc
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
master_secret
=
u'9349ad7c90292a603c512e92'
examples/device_examples/example_aliasuser.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_clrtag.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_getdevice.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_rmalias.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_rmtag.py
View file @
254ba3cc
#-*- encoding:utf-8 -*-
#-*- encoding:utf-8 -*-
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_tagexist.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_taglist.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_tagupduser.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_updevice.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/device_examples/example_updevicemobile.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
device
=
_jpush
.
create_device
()
device
=
_jpush
.
create_device
()
...
...
examples/push_examples/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
\ No newline at end of file
examples/push_examples/example_all.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
from
jpush
import
common
from
jpush
import
common
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
...
...
examples/push_examples/example_audience.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/push_examples/example_options.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/push_examples/example_platformmsg.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/push_examples/example_silent.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/push_examples/example_sms.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/push_examples/example_validate.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
push
=
_jpush
.
create_push
()
push
=
_jpush
.
create_push
()
...
...
examples/report_examples/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
examples/report_examples/example_messages.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
report
=
_jpush
.
create_report
();
report
=
_jpush
.
create_report
();
...
...
examples/report_examples/example_received.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
report
=
_jpush
.
create_report
();
report
=
_jpush
.
create_report
();
...
...
examples/report_examples/example_users.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
report
=
_jpush
.
create_report
();
report
=
_jpush
.
create_report
();
...
...
examples/schedule_examples/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
examples/schedule_examples/example_delete_schedule.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
examples/schedule_examples/example_get_schedule.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
examples/schedule_examples/example_get_schedule_list.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
examples/schedule_examples/example_post_schedule.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
examples/schedule_examples/example_put_schedule.py
View file @
254ba3cc
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
examples.
conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
.
set_logging
(
"DEBUG"
)
_jpush
.
set_logging
(
"DEBUG"
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
tests/
devices/
conf.py
→
tests/conf.py
View file @
254ba3cc
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
master_secret
=
u'9349ad7c90292a603c512e92'
tests/devices/test_devices.py
View file @
254ba3cc
import
unittest
import
unittest
from
conf
import
app_key
,
master_secret
from
tests.
conf
import
app_key
,
master_secret
from
jpush
import
device
from
jpush
import
device
from
jpush
import
common
from
jpush
import
common
import
jpush
as
jpush
import
jpush
as
jpush
...
...
tests/push/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
tests/push/test_audience.py
View file @
254ba3cc
import
unittest
import
unittest
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
tests.
conf
import
app_key
,
master_secret
from
jpush
import
common
from
jpush
import
common
...
...
tests/push/test_message.py
View file @
254ba3cc
# -*- coding:utf-8 -*-
# -*- coding:utf-8 -*-
import
unittest
import
unittest
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
tests.
conf
import
app_key
,
master_secret
from
jpush
import
common
from
jpush
import
common
...
...
tests/report/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
tests/report/test_report.py
View file @
254ba3cc
import
unittest
import
unittest
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
tests.
conf
import
app_key
,
master_secret
from
jpush
import
common
from
jpush
import
common
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
...
...
tests/schedule/conf.py
deleted
100644 → 0
View file @
5e882ac2
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'9349ad7c90292a603c512e92'
tests/schedule/test_schedule.py
View file @
254ba3cc
import
unittest
import
unittest
from
jpush
import
schedule
from
jpush
import
schedule
import
jpush
as
jpush
import
jpush
as
jpush
from
conf
import
app_key
,
master_secret
from
jpush
import
common
from
jpush
import
common
from
tests.conf
import
app_key
,
master_secret
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
_jpush
=
jpush
.
JPush
(
app_key
,
master_secret
)
schedule
=
_jpush
.
create_schedule
()
schedule
=
_jpush
.
create_schedule
()
...
...
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