lib/bearcat/client/users.rb in bearcat-1.0.17 vs lib/bearcat/client/users.rb in bearcat-1.0.18

- old
+ new

@@ -12,19 +12,19 @@ def add_user(account, params={}) post("/api/v1/accounts/#{account.to_s}/users", params) end - def user_profile(user) - get("/api/v1/users/#{user.to_s}/profile") + def user_profile(user, params={}) + get("/api/v1/users/#{user.to_s}/profile", params) end - def user_logins(user) - get("/api/v1/users/#{user.to_s}/logins") + def user_logins(user, params={}) + get("/api/v1/users/#{user.to_s}/logins", params) end - def communication_channels(user) - get("/api/v1/users/#{user.to_s}/communication_channels") + def communication_channels(user, params) + get("/api/v1/users/#{user.to_s}/communication_channels", params) end # scope: food # params: {ns: 'com.account-domain.canvas-app'} # returns all custom user food scope data. If no scope returns all custom user data