All URIs are relative to https://api.builtbybit.com
| Method | HTTP request | Description |
|---|---|---|
| getV2ResourcesCreatorAddons | GET /v2/resources/creator/addons | Fetch a list of your resources' addons |
| getV2ResourcesCreatorAddonsLicenses | GET /v2/resources/creator/addons/licenses | Fetch a list of your addons' licenses |
| postV2ResourcesCreatorAddonsUpdate | POST /v2/resources/creator/addons/update | Post an addon update |
GetV2ResourcesCreatorAddons200Response getV2ResourcesCreatorAddons(resourceIds, page, perPage, with)
Fetch a list of your resources' addons
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.ResourcesCreatorAddonsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.builtbybit.com");
// Configure API key authorization: token
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.setApiKeyPrefix("Token");
ResourcesCreatorAddonsApi apiInstance = new ResourcesCreatorAddonsApi(defaultClient);
List resourceIds = new List(); // List | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
Integer page = 56; // Integer | The page number/offset to return items for.
Integer perPage = 25; // Integer | The number of items per page to return.
String with = "with_example"; // String | A comma-separated list of supported 'with hints'. See model & endpoint-level docs for more info.
try {
GetV2ResourcesCreatorAddons200Response result = apiInstance.getV2ResourcesCreatorAddons(resourceIds, page, perPage, with);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ResourcesCreatorAddonsApi#getV2ResourcesCreatorAddons");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| resourceIds | List | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
| page | Integer | The page number/offset to return items for. | [optional] |
| perPage | Integer | The number of items per page to return. | [optional] [default to 25] |
| with | String | A comma-separated list of supported 'with hints'. See model & endpoint-level docs for more info. | [optional] |
GetV2ResourcesCreatorAddons200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
GetV2ResourcesCreatorAddonsLicenses200Response getV2ResourcesCreatorAddonsLicenses(addonIds, buyerIds, page, perPage, with)
Fetch a list of your addons' licenses
Only addons of a type which issues licenses are covered. If any addon in `addon_ids` is of a type which doesn't support licenses, the request fails with a 400 `AddonNotLicensable` error. When `addon_ids` is empty, addons of other types are skipped instead. Addon IDs you don't own are ignored. Supported 'with' hints: - See 'AddonLicense' model.
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.ResourcesCreatorAddonsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.builtbybit.com");
// Configure API key authorization: token
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.setApiKeyPrefix("Token");
ResourcesCreatorAddonsApi apiInstance = new ResourcesCreatorAddonsApi(defaultClient);
List addonIds = new List(); // List | A comma-separated list of addon IDs to filter on. All of your licensable addons are included if empty.
List buyerIds = new List(); // List | A comma-separated list of buyer IDs to filter on. No filter is applied if empty.
Integer page = 56; // Integer | The page number/offset to return items for.
Integer perPage = 25; // Integer | The number of items per page to return.
String with = "with_example"; // String | A comma-separated list of supported 'with hints'. See model & endpoint-level docs for more info.
try {
GetV2ResourcesCreatorAddonsLicenses200Response result = apiInstance.getV2ResourcesCreatorAddonsLicenses(addonIds, buyerIds, page, perPage, with);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ResourcesCreatorAddonsApi#getV2ResourcesCreatorAddonsLicenses");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| addonIds | List | A comma-separated list of addon IDs to filter on. All of your licensable addons are included if empty. | [optional] |
| buyerIds | List | A comma-separated list of buyer IDs to filter on. No filter is applied if empty. | [optional] |
| page | Integer | The page number/offset to return items for. | [optional] |
| perPage | Integer | The number of items per page to return. | [optional] [default to 25] |
| with | String | A comma-separated list of supported 'with hints'. See model & endpoint-level docs for more info. | [optional] |
GetV2ResourcesCreatorAddonsLicenses200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 4XX | - | |
| 5XX | - |
PostV2ResourcesCreatorAddonsUpdate200Response postV2ResourcesCreatorAddonsUpdate(postV2ResourcesCreatorAddonsUpdateRequest)
Post an addon update
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.ResourcesCreatorAddonsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.builtbybit.com");
// Configure API key authorization: token
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.setApiKeyPrefix("Token");
ResourcesCreatorAddonsApi apiInstance = new ResourcesCreatorAddonsApi(defaultClient);
PostV2ResourcesCreatorAddonsUpdateRequest postV2ResourcesCreatorAddonsUpdateRequest = new PostV2ResourcesCreatorAddonsUpdateRequest(); // PostV2ResourcesCreatorAddonsUpdateRequest | Creates a new version for the addon. The uploaded file must be encoded using base64 as part of the JSON request body shown below. The request body (including the base64 encoded file data) cannot exceed 100MB. This roughly equates to a 67MB upload limit for the raw file when taking into account base64 encoding losses.
try {
PostV2ResourcesCreatorAddonsUpdate200Response result = apiInstance.postV2ResourcesCreatorAddonsUpdate(postV2ResourcesCreatorAddonsUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ResourcesCreatorAddonsApi#postV2ResourcesCreatorAddonsUpdate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| postV2ResourcesCreatorAddonsUpdateRequest | PostV2ResourcesCreatorAddonsUpdateRequest | Creates a new version for the addon. The uploaded file must be encoded using base64 as part of the JSON request body shown below. The request body (including the base64 encoded file data) cannot exceed 100MB. This roughly equates to a 67MB upload limit for the raw file when taking into account base64 encoding losses. | [optional] |
PostV2ResourcesCreatorAddonsUpdate200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 4XX | - |