Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
courier
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
张宇
courier
Commits
ad968e76
Commit
ad968e76
authored
Feb 11, 2020
by
张宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[A]环信用户注册
parent
32f854d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
client.py
hx/client.py
+1
-0
No files found.
hx/client.py
View file @
ad968e76
...
...
@@ -80,6 +80,7 @@ class HuanXinClient(object):
self
.
session
.
headers
[
'Authorization'
]
=
'Bearer {}'
.
format
(
token_dict
.
get
(
'access_token'
))
def
register_single_user
(
self
,
hx_username
:
str
,
hx_password
:
str
,
nickname
:
Optional
[
str
]
=
None
):
self
.
check_then_set_token
()
REGISTER_SINGLE_USER_URL
=
'{base_url}/{org_name}/{app_name}/users'
.
format
(
base_url
=
self
.
BASE_URL
,
org_name
=
self
.
ORG_NAME
,
...
...
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