Skip to content

Commit d3f246d

Browse files
committed
Auto-generate wrapper from updated spec
1 parent 0e99b46 commit d3f246d

File tree

108 files changed

+5957
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+5957
-271
lines changed

README.md

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
BuiltByBit API
44
- API version: v2
5-
- Build date: 2026-03-23T12:13:15.121442Z[Etc/UTC]
5+
- Build date: 2026-03-23T18:13:05.976474Z[Etc/UTC]
66

7-
All operations not tagged 'free' require an active [Ultimate](https://builtbybit.com/account/ultimate) subscription or invite-only permissions.
7+
All operations not tagged 'free' require an active [Ultimate](https://builtbybit.com/account/ultimate) subscription or invite-only permissions.
8+
9+
V2 documentation: https://builtbybit.com/wiki/api-v2/ \\
10+
OAuth2 documentation: https://builtbybit.com/wiki/oauth2/
811

912
For more information, please visit [https://builtbybit.com/ticket](https://builtbybit.com/ticket)
1013

@@ -84,20 +87,27 @@ Please follow the [installation](#installation) instruction and execute the foll
8487
import org.openapitools.client.ApiClient;
8588
import org.openapitools.client.ApiException;
8689
import org.openapitools.client.Configuration;
90+
import org.openapitools.client.auth.*;
8791
import org.openapitools.client.models.*;
88-
import org.openapitools.client.api.DefaultApi;
92+
import org.openapitools.client.api.GlobalApi;
8993

9094
public class Example {
9195
public static void main(String[] args) {
9296
ApiClient defaultClient = Configuration.getDefaultApiClient();
9397
defaultClient.setBasePath("https://api.builtbybit.com");
94-
95-
DefaultApi apiInstance = new DefaultApi(defaultClient);
98+
99+
// Configure API key authorization: token
100+
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
101+
token.setApiKey("YOUR API KEY");
102+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
103+
//token.setApiKeyPrefix("Token");
104+
105+
GlobalApi apiInstance = new GlobalApi(defaultClient);
96106
try {
97107
GetV2Analytics200Response result = apiInstance.getV2Analytics();
98108
System.out.println(result);
99109
} catch (ApiException e) {
100-
System.err.println("Exception when calling DefaultApi#getV2Analytics");
110+
System.err.println("Exception when calling GlobalApi#getV2Analytics");
101111
System.err.println("Status code: " + e.getCode());
102112
System.err.println("Reason: " + e.getResponseBody());
103113
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -114,28 +124,30 @@ All URIs are relative to *https://api.builtbybit.com*
114124

115125
Class | Method | HTTP request | Description
116126
------------ | ------------- | ------------- | -------------
117-
*DefaultApi* | [**getV2Analytics**](docs/DefaultApi.md#getV2Analytics) | **GET** /v2/analytics | Fetch a list of analytics definitions
118-
*DefaultApi* | [**getV2AnalyticsGraph**](docs/DefaultApi.md#getV2AnalyticsGraph) | **GET** /v2/analytics/graph | Fetch analytics graph data
119-
*DefaultApi* | [**getV2Events**](docs/DefaultApi.md#getV2Events) | **GET** /v2/events | Fetch a list of pending events
120-
*DefaultApi* | [**postV2EventsComplete**](docs/DefaultApi.md#postV2EventsComplete) | **POST** /v2/events/complete | Mark events as complete
121-
*DefaultApi* | [**postV2ResourcesCreatorUpdate**](docs/DefaultApi.md#postV2ResourcesCreatorUpdate) | **POST** /v2/resources/creator/update | Post a resource update
122-
*DiscoveryApi* | [**getResourcesDiscoverCategories**](docs/DiscoveryApi.md#getResourcesDiscoverCategories) | **GET** /v2/resources/discover/categories | Fetch a list of categories
123-
*DiscoveryApi* | [**getResourcesDiscoverResources**](docs/DiscoveryApi.md#getResourcesDiscoverResources) | **GET** /v2/resources/discover/resources | Fetch a list of resources
124-
*DiscoveryApi* | [**getV2ResourcesDiscoverCartView**](docs/DiscoveryApi.md#getV2ResourcesDiscoverCartView) | **GET** /v2/resources/discover/cart/view | View the user's cart items
125-
*DiscoveryApi* | [**getV2ResourcesDiscoverLicenses**](docs/DiscoveryApi.md#getV2ResourcesDiscoverLicenses) | **GET** /v2/resources/discover/licenses | Fetch a list of the user's licenses
126-
*DiscoveryApi* | [**postV2ResourcesDiscoverCartAdd**](docs/DiscoveryApi.md#postV2ResourcesDiscoverCartAdd) | **POST** /v2/resources/discover/cart/add | Add items to a user's cart
127-
*DiscoveryApi* | [**postV2ResourcesDiscoverCartCheckout**](docs/DiscoveryApi.md#postV2ResourcesDiscoverCartCheckout) | **POST** /v2/resources/discover/cart/checkout | Initiate a checkout of a user's cart
128-
*DiscoveryApi* | [**postV2ResourcesDiscoverCartCouponAdd**](docs/DiscoveryApi.md#postV2ResourcesDiscoverCartCouponAdd) | **POST** /v2/resources/discover/cart/coupon/add | Add a coupon to the user's cart
129-
*DiscoveryApi* | [**postV2ResourcesDiscoverCartCouponRemove**](docs/DiscoveryApi.md#postV2ResourcesDiscoverCartCouponRemove) | **POST** /v2/resources/discover/cart/coupon/remove | Remove a coupon from the user's cart
130-
*DiscoveryApi* | [**postV2ResourcesDiscoverCartRemove**](docs/DiscoveryApi.md#postV2ResourcesDiscoverCartRemove) | **POST** /v2/resources/discover/cart/remove | Remove an item from the user's cart
127+
*GlobalApi* | [**getV2Analytics**](docs/GlobalApi.md#getV2Analytics) | **GET** /v2/analytics | Fetch a list of analytics definitions
128+
*GlobalApi* | [**getV2AnalyticsGraph**](docs/GlobalApi.md#getV2AnalyticsGraph) | **GET** /v2/analytics/graph | Fetch analytics graph data
129+
*GlobalApi* | [**getV2AnalyticsSingle**](docs/GlobalApi.md#getV2AnalyticsSingle) | **GET** /v2/analytics/single | Fetch a single analytics value
130+
*GlobalApi* | [**getV2Events**](docs/GlobalApi.md#getV2Events) | **GET** /v2/events | Fetch a list of pending events
131+
*GlobalApi* | [**postV2EventsComplete**](docs/GlobalApi.md#postV2EventsComplete) | **POST** /v2/events/complete | Mark events as complete
131132
*Oauth2Api* | [**getOauth2Token**](docs/Oauth2Api.md#getOauth2Token) | **POST** /oauth2/token | Request an access token using an existing grant
132133
*Oauth2Api* | [**getOauth2TokenRevoke**](docs/Oauth2Api.md#getOauth2TokenRevoke) | **POST** /oauth2/token/revoke | Revoke an existing access or refresh token
134+
*ResourcesCreatorApi* | [**postV2ResourcesCreatorUpdate**](docs/ResourcesCreatorApi.md#postV2ResourcesCreatorUpdate) | **POST** /v2/resources/creator/update | Post a resource update
135+
*ResourcesDiscoveryApi* | [**getResourcesDiscoverCategories**](docs/ResourcesDiscoveryApi.md#getResourcesDiscoverCategories) | **GET** /v2/resources/discover/categories | Fetch a list of categories
136+
*ResourcesDiscoveryApi* | [**getResourcesDiscoverResources**](docs/ResourcesDiscoveryApi.md#getResourcesDiscoverResources) | **GET** /v2/resources/discover/resources | Fetch a list of resources
137+
*ResourcesDiscoveryApi* | [**getV2ResourcesDiscoverCartView**](docs/ResourcesDiscoveryApi.md#getV2ResourcesDiscoverCartView) | **GET** /v2/resources/discover/cart/view | View the user's cart items
138+
*ResourcesDiscoveryApi* | [**getV2ResourcesDiscoverLicenses**](docs/ResourcesDiscoveryApi.md#getV2ResourcesDiscoverLicenses) | **GET** /v2/resources/discover/licenses | Fetch a list of the user's licenses
139+
*ResourcesDiscoveryApi* | [**postV2ResourcesDiscoverCartAdd**](docs/ResourcesDiscoveryApi.md#postV2ResourcesDiscoverCartAdd) | **POST** /v2/resources/discover/cart/add | Add items to a user's cart
140+
*ResourcesDiscoveryApi* | [**postV2ResourcesDiscoverCartCheckout**](docs/ResourcesDiscoveryApi.md#postV2ResourcesDiscoverCartCheckout) | **POST** /v2/resources/discover/cart/checkout | Initiate a checkout of a user's cart
141+
*ResourcesDiscoveryApi* | [**postV2ResourcesDiscoverCartCouponAdd**](docs/ResourcesDiscoveryApi.md#postV2ResourcesDiscoverCartCouponAdd) | **POST** /v2/resources/discover/cart/coupon/add | Add a coupon to the user's cart
142+
*ResourcesDiscoveryApi* | [**postV2ResourcesDiscoverCartCouponRemove**](docs/ResourcesDiscoveryApi.md#postV2ResourcesDiscoverCartCouponRemove) | **POST** /v2/resources/discover/cart/coupon/remove | Remove a coupon from the user's cart
143+
*ResourcesDiscoveryApi* | [**postV2ResourcesDiscoverCartRemove**](docs/ResourcesDiscoveryApi.md#postV2ResourcesDiscoverCartRemove) | **POST** /v2/resources/discover/cart/remove | Remove an item from the user's cart
133144

134145

135146
## Documentation for Models
136147

137148
- [Addon](docs/Addon.md)
138149
- [Analytic](docs/Analytic.md)
150+
- [AnalyticFiltersValue](docs/AnalyticFiltersValue.md)
139151
- [AnalyticGraphData](docs/AnalyticGraphData.md)
140152
- [AnalyticGraphDataPeriod](docs/AnalyticGraphDataPeriod.md)
141153
- [AnalyticGraphDataPoint](docs/AnalyticGraphDataPoint.md)
@@ -159,6 +171,9 @@ Class | Method | HTTP request | Description
159171
- [GetV2Analytics200Response](docs/GetV2Analytics200Response.md)
160172
- [GetV2Analytics200ResponseData](docs/GetV2Analytics200ResponseData.md)
161173
- [GetV2AnalyticsGraph200Response](docs/GetV2AnalyticsGraph200Response.md)
174+
- [GetV2AnalyticsSingle200Response](docs/GetV2AnalyticsSingle200Response.md)
175+
- [GetV2AnalyticsSingle200ResponseData](docs/GetV2AnalyticsSingle200ResponseData.md)
176+
- [GetV2AnalyticsSingle200ResponseDataPeriod](docs/GetV2AnalyticsSingle200ResponseDataPeriod.md)
162177
- [GetV2Events200Response](docs/GetV2Events200Response.md)
163178
- [GetV2Events200ResponseData](docs/GetV2Events200ResponseData.md)
164179
- [GetV2ResourcesDiscoverCartView200Response](docs/GetV2ResourcesDiscoverCartView200Response.md)
@@ -205,6 +220,14 @@ Authentication schemes defined for the API:
205220
- **API key parameter name**: Authorization
206221
- **Location**: HTTP header
207222

223+
<a id="oauth2"></a>
224+
### oauth2
225+
226+
- **Type**: OAuth
227+
- **Flow**: accessCode
228+
- **Authorization URL**: https://builtbybit.com/account/external/authorize
229+
- **Scopes**: N/A
230+
208231

209232
## Recommendation
210233

0 commit comments

Comments
 (0)