public class ClientApi extends Object
| Constructor and Description |
|---|
ClientApi() |
| Modifier and Type | Method and Description |
|---|---|
Client |
createClient(String name,
String description,
String redirectUri,
String userId)
Create a client
|
void |
deleteClient(String clientId)
Remove a client by its client_id
|
List<Client> |
getAllClients()
Retrieves all clients
|
List<Client> |
getAllClientsByUser(String userId)
Retrieves all clients filtered by a given user_id
|
String |
getBasePath() |
Client |
getClient(String clientId)
Retrieves a client by its client_id
|
ApiInvoker |
getInvoker() |
static void |
initialize(String providerId,
String providerSecret) |
Client |
resetClientKeys(String clientId)
Regenerate the API key's client
|
void |
setBasePath(String basePath) |
Client |
updateClient(String id,
String name,
String description,
String redirectUri,
String userId)
Update a client
|
public Client createClient(String name, String description, String redirectUri, String userId) throws ApiException
name - Name of the client's appdescription - Description of the client's appredirectUri - Whitelisted redirect uriuserId - User id of the client's appApiExceptionpublic void deleteClient(String clientId) throws ApiException
clientId - Client id of the client to receiveApiExceptionpublic List<Client> getAllClients() throws ApiException
ApiExceptionpublic List<Client> getAllClientsByUser(String userId) throws ApiException
userId - User idApiExceptionpublic String getBasePath()
public Client getClient(String clientId) throws ApiException
clientId - Client id of the client to receiveApiExceptionpublic ApiInvoker getInvoker()
public Client resetClientKeys(String clientId) throws ApiException
clientId - Client idApiExceptionpublic void setBasePath(String basePath)
public Client updateClient(String id, String name, String description, String redirectUri, String userId) throws ApiException
id - Client id of the app to updatename - Name of the client's appdescription - Description of the client's appredirectUri - Whitelisted redirect uriuserId - User id of the client's appApiExceptionCopyright © 2015. All rights reserved.