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 49
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 23
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 33
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 28
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 38
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 44
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 18
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 13
def profile(accountname)
  response = get_request("/1.0/users/#{accountname}")
end