All URIs are relative to https://api.localhost:8000/2.0
Method | HTTP request | Description |
---|---|---|
TeamsUsernameRepositoriesGet | Get /teams/{username}/repositories | |
UserEmailsEmailGet | Get /user/emails/{email} | |
UserEmailsGet | Get /user/emails | |
UserGet | Get /user | |
UsersUsernameFollowersGet | Get /users/{username}/followers | |
UsersUsernameFollowingGet | Get /users/{username}/following | |
UsersUsernameGet | Get /users/{username} | |
UsersUsernameHooksGet | Get /users/{username}/hooks | |
UsersUsernameHooksPost | Post /users/{username}/hooks | |
UsersUsernameHooksUidDelete | Delete /users/{username}/hooks/{uid} | |
UsersUsernameHooksUidGet | Get /users/{username}/hooks/{uid} | |
UsersUsernameHooksUidPut | Put /users/{username}/hooks/{uid} | |
UsersUsernameRepositoriesGet | Get /users/{username}/repositories |
Error TeamsUsernameRepositoriesGet (string username)
All repositories owned by a user/team. This includes private repositories, but filtered down to the ones that the calling user has access to.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class TeamsUsernameRepositoriesGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
try
{
Error result = apiInstance.TeamsUsernameRepositoriesGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.TeamsUsernameRepositoriesGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error UserEmailsEmailGet (string email)
Returns details about a specific one of the authenticated user's email addresses. Details describe whether the address has been confirmed by the user and whether it is the user's primary address or not.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UserEmailsEmailGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var email = email_example; // string |
try
{
Error result = apiInstance.UserEmailsEmailGet(email);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UserEmailsEmailGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedEmailAddresses UserEmailsGet ()
Returns all the authenticated user's email addresses. Both confirmed and unconfirmed.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UserEmailsGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
try
{
PaginatedEmailAddresses result = apiInstance.UserEmailsGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UserEmailsGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User UserGet ()
Returns the currently logged in user.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UserGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
try
{
User result = apiInstance.UserGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UserGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedUsers UsersUsernameFollowersGet (string username)
Returns the list of accounts that are following this team.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameFollowersGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string | The account's username
try
{
PaginatedUsers result = apiInstance.UsersUsernameFollowersGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameFollowersGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | The account's username |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedUsers UsersUsernameFollowingGet (string username)
Returns the list of accounts this user is following.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameFollowingGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string | The user's username
try
{
PaginatedUsers result = apiInstance.UsersUsernameFollowingGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameFollowingGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | The user's username |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User UsersUsernameGet (string username)
Gets the public information associated with a user account. If the user's profile is private, location
, website
and created_on
elements are omitted.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string | The account's username or UUID.
try
{
User result = apiInstance.UsersUsernameGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | The account's username or UUID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedWebhookSubscriptions UsersUsernameHooksGet (string username)
Returns a paginated list of webhooks installed on this user account.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameHooksGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
try
{
PaginatedWebhookSubscriptions result = apiInstance.UsersUsernameHooksGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameHooksGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription UsersUsernameHooksPost (string username)
Creates a new webhook on the specified user account. Account-level webhooks are fired for events from all repositories belonging to that account. Note that one can only register webhooks on one's own account, not that of others.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameHooksPostExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
try
{
WebhookSubscription result = apiInstance.UsersUsernameHooksPost(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameHooksPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UsersUsernameHooksUidDelete (string username, string uid)
Deletes the specified webhook subscription from the given user account.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameHooksUidDeleteExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
var uid = uid_example; // string | The installed webhook's id
try
{
apiInstance.UsersUsernameHooksUidDelete(username, uid);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameHooksUidDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | ||
uid | string | The installed webhook's id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription UsersUsernameHooksUidGet (string username, string uid)
Returns the webhook with the specified id installed on the given user account.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameHooksUidGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
var uid = uid_example; // string | The installed webhook's id.
try
{
WebhookSubscription result = apiInstance.UsersUsernameHooksUidGet(username, uid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameHooksUidGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | ||
uid | string | The installed webhook's id. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription UsersUsernameHooksUidPut (string username, string uid)
Updates the specified webhook subscription. The following properties can be mutated: * description
* url
* active
* events
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameHooksUidPutExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
var uid = uid_example; // string | The installed webhook's id
try
{
WebhookSubscription result = apiInstance.UsersUsernameHooksUidPut(username, uid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameHooksUidPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | ||
uid | string | The installed webhook's id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Error UsersUsernameRepositoriesGet (string username)
All repositories owned by a user/team. This includes private repositories, but filtered down to the ones that the calling user has access to.
using System;
using System.Diagnostics;
using Itofinity.Bitbucket.Rest.Api;
using Itofinity.Bitbucket.Rest.Client;
using Itofinity.Bitbucket.Rest.Model;
namespace Example
{
public class UsersUsernameRepositoriesGetExample
{
public void main()
{
// Configure API key authorization: api_key
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");
// Configure HTTP basic authorization: basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new UsersApi();
var username = username_example; // string |
try
{
Error result = apiInstance.UsersUsernameRepositoriesGet(username);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.UsersUsernameRepositoriesGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]