File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- 1.0.1
1+ 1.0.2
Original file line number Diff line number Diff line change @@ -198,6 +198,12 @@ class ApiKey {
198198 static all = ( params = { } , options = { } ) =>
199199 ApiKey . list ( params , options )
200200
201+ static findCurrent = async ( params = { } , options = { } ) => {
202+ const response = await Api . sendRequest ( `/api_key` , 'GET' , options )
203+
204+ return new ApiKey ( response ?. data , options )
205+ }
206+
201207 // Parameters:
202208 // id (required) - int64 - Api Key ID.
203209 static find = async ( id , params = { } , options = { } ) => {
@@ -223,12 +229,6 @@ class ApiKey {
223229 static get = ( id , params = { } , options = { } ) =>
224230 ApiKey . find ( id , params , options )
225231
226- static findCurrent = async ( params = { } , options = { } ) => {
227- const response = await Api . sendRequest ( `/api_key` , 'GET' , options )
228-
229- return new ApiKey ( response ?. data , options )
230- }
231-
232232 // Parameters:
233233 // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
234234 // name - string - Internal name for the API Key. For your use.
You can’t perform that action at this time.
0 commit comments