public class UserApi
extends java.lang.Object
| Constructor and Description |
|---|
UserApi(de.westnordost.osmapi.OsmConnection osm) |
| Modifier and Type | Method and Description |
|---|---|
UserInfo |
get(long userId) |
java.util.List<UserInfo> |
getAll(java.util.Collection<java.lang.Long> userIds) |
UserDetails |
getMine() |
public UserDetails getMine()
de.westnordost.osmapi.common.errors.OsmAuthorizationException - if the user does not have the permission
Permission.READ_PREFERENCES_AND_USER_DETAILSpublic UserInfo get(long userId)
userId - id of the user to get the user info forpublic java.util.List<UserInfo> getAll(java.util.Collection<java.lang.Long> userIds)