Skip to content

Commit

Permalink
Add missing endpoint to create user tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaelor committed Feb 2, 2018
1 parent 2f1680e commit 6083bd8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
4.3.1
'''''
Added endpoints
- `create_user_access_token` in `/users`

4.2.1
'''''
Fixes
Expand Down
6 changes: 6 additions & 0 deletions src/mattermostdriver/endpoints/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,9 @@ def update_user_authentication_method(self, user_id, options=None):
return self.client.put(
self.endpoint + user_id + '/auth'
)

def create_user_access_token(self, user_id, options=None):
return self.client.post(
self.endpoint + '/' + user_id + '/tokens',
options
)
2 changes: 1 addition & 1 deletion src/mattermostdriver/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
full_version = '4.2.1'
full_version = '4.3.1'
short_version = '.'.join(full_version.split('.', 2)[:2])

0 comments on commit 6083bd8

Please sign in to comment.