@@ -45,9 +45,9 @@ func (client *Client) GetAPIKey(userID string, accountId string, keyID string) (
45
45
}
46
46
47
47
opts := RequestOptions {
48
- Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
48
+ Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
49
49
XAccessToken : xAccessToken ,
50
- Method : "GET" ,
50
+ Method : "GET" ,
51
51
}
52
52
53
53
resp , err := client .RequestApiXAccessToken (& opts )
@@ -75,8 +75,8 @@ func (client *Client) DeleteAPIKey(userID string, accountId string, keyID string
75
75
return err
76
76
}
77
77
opts := RequestOptions {
78
- Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
79
- Method : "DELETE" ,
78
+ Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
79
+ Method : "DELETE" ,
80
80
XAccessToken : xAccessToken ,
81
81
}
82
82
@@ -89,7 +89,7 @@ func (client *Client) DeleteAPIKey(userID string, accountId string, keyID string
89
89
return nil
90
90
}
91
91
92
- func (client * Client ) UpdateAPIKey (userID string , accountId string ,key * ApiKey ) error {
92
+ func (client * Client ) UpdateAPIKey (userID string , accountId string , key * ApiKey ) error {
93
93
94
94
keyID := key .ID
95
95
if keyID == "" {
@@ -111,10 +111,10 @@ func (client *Client) UpdateAPIKey(userID string, accountId string,key *ApiKey)
111
111
}
112
112
113
113
opts := RequestOptions {
114
- Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
115
- Method : "PATCH" ,
114
+ Path : fmt .Sprintf ("/auth/key/%s" , keyID ),
115
+ Method : "PATCH" ,
116
116
XAccessToken : xAccessToken ,
117
- Body : body ,
117
+ Body : body ,
118
118
}
119
119
120
120
resp , err := client .RequestApiXAccessToken (& opts )
0 commit comments