Package wappsto.api.rest.session
Class RestUser
- java.lang.Object
-
- wappsto.api.rest.session.RestSession
-
- wappsto.api.rest.session.RestUser
-
public class RestUser extends RestSession implements User
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestUser.Builder
-
Field Summary
-
Fields inherited from class wappsto.api.rest.session.RestSession
service
-
-
Constructor Summary
Constructors Constructor Description RestUser(java.lang.String id, java.lang.String serviceUrl)Create a session object from an existing session IDRestUser(Credentials credentials, java.lang.String serviceUrl)Create an API session with regular user privileges
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserResponsefetchMe()Fetch user information associated with the sessionjava.lang.StringgetId()-
Methods inherited from class wappsto.api.rest.session.RestSession
fetchUser
-
-
-
-
Constructor Detail
-
RestUser
public RestUser(Credentials credentials, java.lang.String serviceUrl) throws java.lang.Exception
Create an API session with regular user privileges- Parameters:
credentials- Login credentialsserviceUrl- URL to API- Throws:
java.lang.Exception
-
RestUser
public RestUser(java.lang.String id, java.lang.String serviceUrl) throws java.lang.ExceptionCreate a session object from an existing session ID- Parameters:
id- Session IDserviceUrl- URL to API- Throws:
java.lang.Exception
-
-
Method Detail
-
fetchMe
public UserResponse fetchMe() throws java.lang.Exception
Fetch user information associated with the session
-
-