class BitBucket::Users::Account
Public Instance Methods
delete_key(accountname, key_id)
click to toggle source
DELETE a key
# File lib/bitbucket_rest_api/users/account.rb, line 46 def delete_key(accountname, key_id) response = delete_request("/1.0/users/#{accountname}/ssh-keys/#{key_id}") end
emails(accountname)
click to toggle source
GET the emails
# File lib/bitbucket_rest_api/users/account.rb, line 20 def emails(accountname) response = get_request("/1.0/users/#{accountname}/emails") end
events(accountname)
click to toggle source
GET the events
# File lib/bitbucket_rest_api/users/account.rb, line 30 def events(accountname) response = get_request("/1.0/users/#{accountname}/events") end
followers(accountname)
click to toggle source
GET the followers
# File lib/bitbucket_rest_api/users/account.rb, line 25 def followers(accountname) response = get_request("/1.0/users/#{accountname}/followers") end
keys(accountname)
click to toggle source
GET the keys
# File lib/bitbucket_rest_api/users/account.rb, line 35 def keys(accountname) response = get_request("/1.0/users/#{accountname}/ssh-keys") end
new_key(accountname, params)
click to toggle source
POST a new key params should be in format {key: “”, label:“”}
# File lib/bitbucket_rest_api/users/account.rb, line 41 def new_key(accountname, params) response = post_request("/1.0/users/#{accountname}/ssh-keys/", params) end
plan(accountname)
click to toggle source
GET the account plan
# File lib/bitbucket_rest_api/users/account.rb, line 15 def plan(accountname) response = get_request("/1.0/users/#{accountname}/plan") end
profile(accountname)
click to toggle source
GET the account profile
# File lib/bitbucket_rest_api/users/account.rb, line 10 def profile(accountname) response = get_request("/1.0/users/#{accountname}") end