All URIs are relative to *https://ci.appveyor.com/api*
| Method | HTTP request | Description |
|---|---|---|
| addCollaborator | POST /collaborators | Add collaborator |
| deleteCollaborator | DELETE /collaborators/{userId} | Delete collaborator |
| getCollaborator | GET /collaborators/{userId} | Get collaborator |
| getCollaborators | GET /collaborators | Get collaborators |
| updateCollaborator | PUT /collaborators | Update collaborator |
addCollaborator(body)
Add collaborator
// Import classes:
//import name.kevinlocke.appveyor.ApiClient;
//import name.kevinlocke.appveyor.ApiException;
//import name.kevinlocke.appveyor.Configuration;
//import name.kevinlocke.appveyor.auth.*;
//import name.kevinlocke.appveyor.api.CollaboratorApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiToken
ApiKeyAuth apiToken = (ApiKeyAuth) defaultClient.getAuthentication("apiToken");
apiToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiToken.setApiKeyPrefix("Token");
CollaboratorApi apiInstance = new CollaboratorApi();
CollaboratorAddition body = new CollaboratorAddition(); // CollaboratorAddition |
try {
apiInstance.addCollaborator(body);
} catch (ApiException e) {
System.err.println("Exception when calling CollaboratorApi#addCollaborator");
e.printStackTrace();
}
| Name | Type | Description | Notes |
|---|---|---|---|
| body | CollaboratorAddition |
deleteCollaborator(userId)
Delete collaborator
// Import classes:
//import name.kevinlocke.appveyor.ApiClient;
//import name.kevinlocke.appveyor.ApiException;
//import name.kevinlocke.appveyor.Configuration;
//import name.kevinlocke.appveyor.auth.*;
//import name.kevinlocke.appveyor.api.CollaboratorApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiToken
ApiKeyAuth apiToken = (ApiKeyAuth) defaultClient.getAuthentication("apiToken");
apiToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiToken.setApiKeyPrefix("Token");
CollaboratorApi apiInstance = new CollaboratorApi();
Integer userId = 56; // Integer | User ID
try {
apiInstance.deleteCollaborator(userId);
} catch (ApiException e) {
System.err.println("Exception when calling CollaboratorApi#deleteCollaborator");
e.printStackTrace();
}
UserAccountRolesResults getCollaborator(userId)
Get collaborator
// Import classes:
//import name.kevinlocke.appveyor.ApiClient;
//import name.kevinlocke.appveyor.ApiException;
//import name.kevinlocke.appveyor.Configuration;
//import name.kevinlocke.appveyor.auth.*;
//import name.kevinlocke.appveyor.api.CollaboratorApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiToken
ApiKeyAuth apiToken = (ApiKeyAuth) defaultClient.getAuthentication("apiToken");
apiToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiToken.setApiKeyPrefix("Token");
CollaboratorApi apiInstance = new CollaboratorApi();
Integer userId = 56; // Integer | User ID
try {
UserAccountRolesResults result = apiInstance.getCollaborator(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollaboratorApi#getCollaborator");
e.printStackTrace();
}
List<UserAccount> getCollaborators()
Get collaborators
// Import classes:
//import name.kevinlocke.appveyor.ApiClient;
//import name.kevinlocke.appveyor.ApiException;
//import name.kevinlocke.appveyor.Configuration;
//import name.kevinlocke.appveyor.auth.*;
//import name.kevinlocke.appveyor.api.CollaboratorApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiToken
ApiKeyAuth apiToken = (ApiKeyAuth) defaultClient.getAuthentication("apiToken");
apiToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiToken.setApiKeyPrefix("Token");
CollaboratorApi apiInstance = new CollaboratorApi();
try {
List<UserAccount> result = apiInstance.getCollaborators();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollaboratorApi#getCollaborators");
e.printStackTrace();
}
updateCollaborator(body)
Update collaborator
// Import classes:
//import name.kevinlocke.appveyor.ApiClient;
//import name.kevinlocke.appveyor.ApiException;
//import name.kevinlocke.appveyor.Configuration;
//import name.kevinlocke.appveyor.auth.*;
//import name.kevinlocke.appveyor.api.CollaboratorApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiToken
ApiKeyAuth apiToken = (ApiKeyAuth) defaultClient.getAuthentication("apiToken");
apiToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiToken.setApiKeyPrefix("Token");
CollaboratorApi apiInstance = new CollaboratorApi();
CollaboratorUpdate body = new CollaboratorUpdate(); // CollaboratorUpdate |
try {
apiInstance.updateCollaborator(body);
} catch (ApiException e) {
System.err.println("Exception when calling CollaboratorApi#updateCollaborator");
e.printStackTrace();
}
| Name | Type | Description | Notes |
|---|---|---|---|
| body | CollaboratorUpdate |