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 |
void AddCollaborator (CollaboratorAddition body)
Add collaborator
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class AddCollaboratorExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CollaboratorApi();
var body = new CollaboratorAddition(); // CollaboratorAddition |
try
{
// Add collaborator
apiInstance.AddCollaborator(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollaboratorApi.AddCollaborator: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | CollaboratorAddition |
void (empty response body)
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCollaborator (int? userId)
Delete collaborator
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class DeleteCollaboratorExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CollaboratorApi();
var userId = 56; // int? | User ID
try
{
// Delete collaborator
apiInstance.DeleteCollaborator(userId);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollaboratorApi.DeleteCollaborator: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | int? | User ID |
void (empty response body)
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserAccountRolesResults GetCollaborator (int? userId)
Get collaborator
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class GetCollaboratorExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CollaboratorApi();
var userId = 56; // int? | User ID
try
{
// Get collaborator
UserAccountRolesResults result = apiInstance.GetCollaborator(userId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollaboratorApi.GetCollaborator: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | int? | User ID |
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List GetCollaborators ()
Get collaborators
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class GetCollaboratorsExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CollaboratorApi();
try
{
// Get collaborators
List<UserAccount> result = apiInstance.GetCollaborators();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollaboratorApi.GetCollaborators: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateCollaborator (CollaboratorUpdate body)
Update collaborator
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class UpdateCollaboratorExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CollaboratorApi();
var body = new CollaboratorUpdate(); // CollaboratorUpdate |
try
{
// Update collaborator
apiInstance.UpdateCollaborator(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollaboratorApi.UpdateCollaborator: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | CollaboratorUpdate |
void (empty response body)
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]