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 {
198
198
static all = ( params = { } , options = { } ) =>
199
199
ApiKey . list ( params , options )
200
200
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
+
201
207
// Parameters:
202
208
// id (required) - int64 - Api Key ID.
203
209
static find = async ( id , params = { } , options = { } ) => {
@@ -223,12 +229,6 @@ class ApiKey {
223
229
static get = ( id , params = { } , options = { } ) =>
224
230
ApiKey . find ( id , params , options )
225
231
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
-
232
232
// Parameters:
233
233
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
234
234
// name - string - Internal name for the API Key. For your use.
You can’t perform that action at this time.
0 commit comments