@ClassPreamble(author="Maksym Novozhylov <mnovozhilov@upwork.com>", date="6/4/2014", currentRevision=1, lastModified="6/4/2014", lastModifiedBy="Maksym Novozhylov", reviewers="Yiota Tsakiri") public final class Roles extends java.lang.Object
Constructor and Description |
---|
Roles(OAuthClient client) |
Modifier and Type | Method and Description |
---|---|
JSONObject |
getAll()
Get user roles
|
JSONObject |
getBySpecificUser(java.lang.String reference)
Get by specific user
|
public Roles(OAuthClient client)
public JSONObject getAll() throws JSONException
JSONObject
JSONException
- If error occurredpublic JSONObject getBySpecificUser(java.lang.String reference) throws JSONException
reference
- User referenceJSONObject
JSONException
- If error occurred