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
31f7ebfb
Commit
31f7ebfb
authored
Sep 28, 2014
by
hupantingxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Devices API url update;
parent
e21f4c90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
common.py
jpush/common.py
+4
-4
core.py
jpush/device/core.py
+1
-7
No files found.
jpush/common.py
View file @
31f7ebfb
...
...
@@ -6,10 +6,10 @@ BASE_URL = "https://api.jpush.cn/"
PUSH_URL
=
BASE_URL
+
'v3/push'
DEVICE_BASEURL
=
"https://device.jpush.cn/"
DEVICE_URL
=
DEVICE_BASEURL
+
"v3/device/"
TAG_URL
=
DEVICE_BASEURL
+
"v3/tag/"
TAGLIST_URL
=
TAG_URL
+
"list/"
ALIAS_URL
=
DEVICE_BASEURL
+
"v3/alias/"
DEVICE_URL
=
DEVICE_BASEURL
+
"v3/device
s
/"
TAG_URL
=
DEVICE_BASEURL
+
"v3/tag
s
/"
TAGLIST_URL
=
TAG_URL
ALIAS_URL
=
DEVICE_BASEURL
+
"v3/alias
es
/"
logger
=
logging
.
getLogger
(
'jpush'
)
...
...
jpush/device/core.py
View file @
31f7ebfb
...
...
@@ -2,12 +2,6 @@
from
jpush
import
common
import
json
DEVICE_BASEURL
=
"https://device.jpush.cn/"
DEVICE_URL
=
DEVICE_BASEURL
+
"v3/device/"
TAG_URL
=
DEVICE_BASEURL
+
"v3/tag/"
TAGLIST_URL
=
TAG_URL
+
"list/"
ALIAS_URL
=
DEVICE_BASEURL
+
"v3/alias/"
class
Device
(
object
):
"""Device info query/update..
...
...
@@ -71,7 +65,7 @@ class Device(object):
def
check_taguserexist
(
self
,
tag
,
registration_id
):
"""Check registration id whether in tag.
"""
url
=
common
.
TAG_URL
+
tag
+
"/
exist/"
url
=
common
.
TAG_URL
+
tag
+
"/
registration_ids/"
+
registration_id
body
=
registration_id
print
(
url
),
(
registration_id
)
info
=
self
.
send
(
"GET"
,
url
,
body
)
...
...
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