lib/bearcat/client/accounts.rb in bearcat-1.0.13 vs lib/bearcat/client/accounts.rb in bearcat-1.0.14
- old
+ new
@@ -1,14 +1,22 @@
module Bearcat
class Client < Footrest::Client
module Accounts
+ def list_accounts(params = {})
+ get("/api/v1/accounts", params)
+ end
+
def account(account)
get("/api/v1/accounts/#{account}")
end
def terms(account, params = {})
- get("/api/v1/accounts/#{account}/terms")
+ get("/api/v1/accounts/#{account}/terms", params)
+ end
+
+ def account_admins(account, params = {})
+ get("/api/v1/accounts/#{account}/admins", params)
end
end
end
end