public class AllenAPI extends Object
| Constructor and Description |
|---|
AllenAPI(String baseURL,
String authorization) |
| Modifier and Type | Method and Description |
|---|---|
SelfProfileResponse |
getSelfProfile(SelfProfileRequest request)
Get your own profile
|
NameSearchResponse |
searchByName(NameSearchRequest request)
Search for a user by name
|
public NameSearchResponse searchByName(NameSearchRequest request) throws IOException, URISyntaxException
request - The request used to search for a user. Created by NameSearchRequest.build(String, int) function.NameSearchResponseIOException - The connection could not be established.URISyntaxException - This will most likely be thrown when the baseURL is invalid.public SelfProfileResponse getSelfProfile(SelfProfileRequest request) throws IOException, URISyntaxException
request - The request used to get your own profile. Created by SelfProfileRequest.build() function.SelfProfileResponseIOException - The connection could not be established.URISyntaxException - This will most likely be thrown when the baseURL is invalid.Copyright © 2021. All rights reserved.