File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 77
88__email__ = "engineering@bugout.dev"
99__license__ = "MIT"
10- __version__ = "0.1.17 "
10+ __version__ = "0.1.18 "
1111
1212__all__ = (
1313 "__author__" ,
Original file line number Diff line number Diff line change @@ -139,11 +139,15 @@ def create_token(
139139 username : str ,
140140 password : str ,
141141 application_id : Optional [Union [str , uuid .UUID ]] = None ,
142+ token_note : Optional [str ] = None ,
142143 timeout : float = REQUESTS_TIMEOUT ,
143144 ) -> data .BugoutToken :
144145 self .user .timeout = timeout
145146 return self .user .create_token (
146- username = username , password = password , application_id = application_id
147+ username = username ,
148+ password = password ,
149+ application_id = application_id ,
150+ token_note = token_note ,
147151 )
148152
149153 def create_token_restricted (
Original file line number Diff line number Diff line change @@ -161,12 +161,14 @@ def create_token(
161161 username : str ,
162162 password : str ,
163163 application_id : Optional [Union [str , uuid .UUID ]] = None ,
164+ token_note : Optional [str ] = None ,
164165 ) -> BugoutToken :
165166 create_token_path = "token"
166167 data = {
167168 "username" : username ,
168169 "password" : password ,
169170 "application_id" : application_id ,
171+ "token_note" : token_note ,
170172 }
171173 result = self ._call (method = Method .post , path = create_token_path , data = data )
172174 return BugoutToken (** result )
You can’t perform that action at this time.
0 commit comments