We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45677db commit 8e7aa82Copy full SHA for 8e7aa82
lib/bitbucket_rest_api/users/account.rb
@@ -28,6 +28,21 @@ def followers(accountname)
28
def events(accountname)
29
response = get_request("/users/#{accountname}/events")
30
end
31
-
+
32
+ #GET the keys
33
+ def keys(accountname)
34
+ response = get_request("/users/#{accountname}/ssh-keys")
35
+ end
36
37
+ #POST a new key
38
+ # params should be in format {key: "", label:""}
39
+ def new_key(accountname, params)
40
+ response = post_request("/users/#{accountname}/ssh-keys/", params)
41
42
43
+ #DELETE a key
44
+ def delete_key(accountname, key_id)
45
+ response = delete_request("/users/#{accountname}/ssh-keys/#{key_id}")
46
47
end # Users::Account
48
end # BitBucket
0 commit comments