Skip to content

Commit 6fbdb3a

Browse files
committed
Auto-generate wrapper from updated spec
1 parent f8f5346 commit 6fbdb3a

31 files changed

Lines changed: 6636 additions & 3 deletions

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ Class | Method | HTTP request | Description
9090
*HealthApi* | [**getV2Health**](docs/Api/HealthApi.md#getv2health) | **GET** /v2/health | Retrieve a health status
9191
*Oauth2Api* | [**getOauth2Token**](docs/Api/Oauth2Api.md#getoauth2token) | **POST** /oauth2/token | Request an access token using an existing grant
9292
*Oauth2Api* | [**getOauth2TokenRevoke**](docs/Api/Oauth2Api.md#getoauth2tokenrevoke) | **POST** /oauth2/token/revoke | Revoke an existing access or refresh token
93-
*ResourcesBuyerApi* | [**getV2ResourcesBuyerLatest**](docs/Api/ResourcesBuyerApi.md#getv2resourcesbuyerlatest) | **GET** /v2/resources/buyer/latest | Fetches the latest versions & license information
9493
*ResourcesCreatorApi* | [**getV2ResourcesCreatorAddons**](docs/Api/ResourcesCreatorApi.md#getv2resourcescreatoraddons) | **GET** /v2/resources/creator/addons | Fetch a list of your resources' addons
9594
*ResourcesCreatorApi* | [**getV2ResourcesCreatorLicenses**](docs/Api/ResourcesCreatorApi.md#getv2resourcescreatorlicenses) | **GET** /v2/resources/creator/licenses | Fetch a list of your resources' licenses
9695
*ResourcesCreatorApi* | [**getV2ResourcesCreatorPurchases**](docs/Api/ResourcesCreatorApi.md#getv2resourcescreatorpurchases) | **GET** /v2/resources/creator/purchases | Fetch a list of your resources' purchases
@@ -118,6 +117,9 @@ Class | Method | HTTP request | Description
118117
*ResourcesDiscoverCartApi* | [**postV2ResourcesDiscoverCartCouponAdd**](docs/Api/ResourcesDiscoverCartApi.md#postv2resourcesdiscovercartcouponadd) | **POST** /v2/resources/discover/cart/coupon/add | Add a coupon to the user's cart
119118
*ResourcesDiscoverCartApi* | [**postV2ResourcesDiscoverCartCouponRemove**](docs/Api/ResourcesDiscoverCartApi.md#postv2resourcesdiscovercartcouponremove) | **POST** /v2/resources/discover/cart/coupon/remove | Remove a coupon from the user's cart
120119
*ResourcesDiscoverCartApi* | [**postV2ResourcesDiscoverCartRemove**](docs/Api/ResourcesDiscoverCartApi.md#postv2resourcesdiscovercartremove) | **POST** /v2/resources/discover/cart/remove | Remove an item from the user's cart
120+
*ResourcesEmbedApi* | [**getV2ResourcesEmbedDownload**](docs/Api/ResourcesEmbedApi.md#getv2resourcesembeddownload) | **GET** /v2/resources/embed/download | Fetch the status of a download request
121+
*ResourcesEmbedApi* | [**getV2ResourcesEmbedLatest**](docs/Api/ResourcesEmbedApi.md#getv2resourcesembedlatest) | **GET** /v2/resources/embed/latest | Fetches the latest versions & license information
122+
*ResourcesEmbedApi* | [**postV2ResourcesEmbedDownload**](docs/Api/ResourcesEmbedApi.md#postv2resourcesembeddownload) | **POST** /v2/resources/embed/download | Submit a new download request
121123

122124
## Models
123125

@@ -135,6 +137,8 @@ Class | Method | HTTP request | Description
135137
- [Category](docs/Model/Category.md)
136138
- [Coupon](docs/Model/Coupon.md)
137139
- [CouponEntry](docs/Model/CouponEntry.md)
140+
- [DownloadRequest](docs/Model/DownloadRequest.md)
141+
- [DownloadStatus](docs/Model/DownloadStatus.md)
138142
- [Event](docs/Model/Event.md)
139143
- [Filter](docs/Model/Filter.md)
140144
- [FilterChoice](docs/Model/FilterChoice.md)
@@ -156,8 +160,6 @@ Class | Method | HTTP request | Description
156160
- [GetV2Events200Response](docs/Model/GetV2Events200Response.md)
157161
- [GetV2Events200ResponseData](docs/Model/GetV2Events200ResponseData.md)
158162
- [GetV2Health200Response](docs/Model/GetV2Health200Response.md)
159-
- [GetV2ResourcesBuyerLatest200Response](docs/Model/GetV2ResourcesBuyerLatest200Response.md)
160-
- [GetV2ResourcesBuyerLatest200ResponseData](docs/Model/GetV2ResourcesBuyerLatest200ResponseData.md)
161163
- [GetV2ResourcesCreatorAddons200Response](docs/Model/GetV2ResourcesCreatorAddons200Response.md)
162164
- [GetV2ResourcesCreatorAddons200ResponseData](docs/Model/GetV2ResourcesCreatorAddons200ResponseData.md)
163165
- [GetV2ResourcesCreatorBatch200Response](docs/Model/GetV2ResourcesCreatorBatch200Response.md)
@@ -192,6 +194,10 @@ Class | Method | HTTP request | Description
192194
- [GetV2ResourcesDiscoverCartView200ResponseData](docs/Model/GetV2ResourcesDiscoverCartView200ResponseData.md)
193195
- [GetV2ResourcesDiscoverLicenses200Response](docs/Model/GetV2ResourcesDiscoverLicenses200Response.md)
194196
- [GetV2ResourcesDiscoverLicenses200ResponseData](docs/Model/GetV2ResourcesDiscoverLicenses200ResponseData.md)
197+
- [GetV2ResourcesEmbedDownload200Response](docs/Model/GetV2ResourcesEmbedDownload200Response.md)
198+
- [GetV2ResourcesEmbedDownload200ResponseData](docs/Model/GetV2ResourcesEmbedDownload200ResponseData.md)
199+
- [GetV2ResourcesEmbedLatest200Response](docs/Model/GetV2ResourcesEmbedLatest200Response.md)
200+
- [GetV2ResourcesEmbedLatest200ResponseData](docs/Model/GetV2ResourcesEmbedLatest200ResponseData.md)
195201
- [License](docs/Model/License.md)
196202
- [ListStats](docs/Model/ListStats.md)
197203
- [Member](docs/Model/Member.md)
@@ -223,6 +229,9 @@ Class | Method | HTTP request | Description
223229
- [PostV2ResourcesDiscoverCartCouponRemoveRequest](docs/Model/PostV2ResourcesDiscoverCartCouponRemoveRequest.md)
224230
- [PostV2ResourcesDiscoverCartRemove200Response](docs/Model/PostV2ResourcesDiscoverCartRemove200Response.md)
225231
- [PostV2ResourcesDiscoverCartRemoveRequest](docs/Model/PostV2ResourcesDiscoverCartRemoveRequest.md)
232+
- [PostV2ResourcesEmbedDownload200Response](docs/Model/PostV2ResourcesEmbedDownload200Response.md)
233+
- [PostV2ResourcesEmbedDownload200ResponseData](docs/Model/PostV2ResourcesEmbedDownload200ResponseData.md)
234+
- [PostV2ResourcesEmbedDownloadRequest](docs/Model/PostV2ResourcesEmbedDownloadRequest.md)
226235
- [Price](docs/Model/Price.md)
227236
- [Purchase](docs/Model/Purchase.md)
228237
- [Resource](docs/Model/Resource.md)

docs/Api/ResourcesEmbedApi.md

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
# OpenAPI\Client\ResourcesEmbedApi
2+
3+
All URIs are relative to https://api.builtbybit.com, except if the operation defines another base path.
4+
5+
| Method | HTTP request | Description |
6+
| ------------- | ------------- | ------------- |
7+
| [**getV2ResourcesEmbedDownload()**](ResourcesEmbedApi.md#getV2ResourcesEmbedDownload) | **GET** /v2/resources/embed/download | Fetch the status of a download request |
8+
| [**getV2ResourcesEmbedLatest()**](ResourcesEmbedApi.md#getV2ResourcesEmbedLatest) | **GET** /v2/resources/embed/latest | Fetches the latest versions & license information |
9+
| [**postV2ResourcesEmbedDownload()**](ResourcesEmbedApi.md#postV2ResourcesEmbedDownload) | **POST** /v2/resources/embed/download | Submit a new download request |
10+
11+
12+
## `getV2ResourcesEmbedDownload()`
13+
14+
```php
15+
getV2ResourcesEmbedDownload($token): \OpenAPI\Client\Model\GetV2ResourcesEmbedDownload200Response
16+
```
17+
18+
Fetch the status of a download request
19+
20+
### Example
21+
22+
```php
23+
<?php
24+
require_once(__DIR__ . '/vendor/autoload.php');
25+
26+
27+
// Configure API key authorization: token
28+
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
29+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
30+
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
31+
32+
33+
$apiInstance = new OpenAPI\Client\Api\ResourcesEmbedApi(
34+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
35+
// This is optional, `GuzzleHttp\Client` will be used as default.
36+
new GuzzleHttp\Client(),
37+
$config
38+
);
39+
$token = 'token_example'; // string | The token provided when submitting a download request.
40+
41+
try {
42+
$result = $apiInstance->getV2ResourcesEmbedDownload($token);
43+
print_r($result);
44+
} catch (Exception $e) {
45+
echo 'Exception when calling ResourcesEmbedApi->getV2ResourcesEmbedDownload: ', $e->getMessage(), PHP_EOL;
46+
}
47+
```
48+
49+
### Parameters
50+
51+
| Name | Type | Description | Notes |
52+
| ------------- | ------------- | ------------- | ------------- |
53+
| **token** | **string**| The token provided when submitting a download request. | |
54+
55+
### Return type
56+
57+
[**\OpenAPI\Client\Model\GetV2ResourcesEmbedDownload200Response**](../Model/GetV2ResourcesEmbedDownload200Response.md)
58+
59+
### Authorization
60+
61+
[token](../../README.md#token)
62+
63+
### HTTP request headers
64+
65+
- **Content-Type**: Not defined
66+
- **Accept**: `application/json`
67+
68+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
69+
[[Back to Model list]](../../README.md#models)
70+
[[Back to README]](../../README.md)
71+
72+
## `getV2ResourcesEmbedLatest()`
73+
74+
```php
75+
getV2ResourcesEmbedLatest($nonce): \OpenAPI\Client\Model\GetV2ResourcesEmbedLatest200Response
76+
```
77+
78+
Fetches the latest versions & license information
79+
80+
### Example
81+
82+
```php
83+
<?php
84+
require_once(__DIR__ . '/vendor/autoload.php');
85+
86+
87+
// Configure API key authorization: token
88+
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
89+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
90+
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
91+
92+
93+
$apiInstance = new OpenAPI\Client\Api\ResourcesEmbedApi(
94+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
95+
// This is optional, `GuzzleHttp\Client` will be used as default.
96+
new GuzzleHttp\Client(),
97+
$config
98+
);
99+
$nonce = 'nonce_example'; // string | 32 character hash provided by an anti-piracy placeholder of the NONCE type. Must be from a resource download (cannot be an addon download’s nonce, etc).
100+
101+
try {
102+
$result = $apiInstance->getV2ResourcesEmbedLatest($nonce);
103+
print_r($result);
104+
} catch (Exception $e) {
105+
echo 'Exception when calling ResourcesEmbedApi->getV2ResourcesEmbedLatest: ', $e->getMessage(), PHP_EOL;
106+
}
107+
```
108+
109+
### Parameters
110+
111+
| Name | Type | Description | Notes |
112+
| ------------- | ------------- | ------------- | ------------- |
113+
| **nonce** | **string**| 32 character hash provided by an anti-piracy placeholder of the NONCE type. Must be from a resource download (cannot be an addon download’s nonce, etc). | [optional] |
114+
115+
### Return type
116+
117+
[**\OpenAPI\Client\Model\GetV2ResourcesEmbedLatest200Response**](../Model/GetV2ResourcesEmbedLatest200Response.md)
118+
119+
### Authorization
120+
121+
[token](../../README.md#token)
122+
123+
### HTTP request headers
124+
125+
- **Content-Type**: Not defined
126+
- **Accept**: `application/json`
127+
128+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
129+
[[Back to Model list]](../../README.md#models)
130+
[[Back to README]](../../README.md)
131+
132+
## `postV2ResourcesEmbedDownload()`
133+
134+
```php
135+
postV2ResourcesEmbedDownload($post_v2_resources_embed_download_request): \OpenAPI\Client\Model\PostV2ResourcesEmbedDownload200Response
136+
```
137+
138+
Submit a new download request
139+
140+
Supported content types: - 'resource_version' - 'api_asset'
141+
142+
### Example
143+
144+
```php
145+
<?php
146+
require_once(__DIR__ . '/vendor/autoload.php');
147+
148+
149+
// Configure API key authorization: token
150+
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
151+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
152+
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
153+
154+
155+
$apiInstance = new OpenAPI\Client\Api\ResourcesEmbedApi(
156+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
157+
// This is optional, `GuzzleHttp\Client` will be used as default.
158+
new GuzzleHttp\Client(),
159+
$config
160+
);
161+
$post_v2_resources_embed_download_request = new \OpenAPI\Client\Model\PostV2ResourcesEmbedDownloadRequest(); // \OpenAPI\Client\Model\PostV2ResourcesEmbedDownloadRequest
162+
163+
try {
164+
$result = $apiInstance->postV2ResourcesEmbedDownload($post_v2_resources_embed_download_request);
165+
print_r($result);
166+
} catch (Exception $e) {
167+
echo 'Exception when calling ResourcesEmbedApi->postV2ResourcesEmbedDownload: ', $e->getMessage(), PHP_EOL;
168+
}
169+
```
170+
171+
### Parameters
172+
173+
| Name | Type | Description | Notes |
174+
| ------------- | ------------- | ------------- | ------------- |
175+
| **post_v2_resources_embed_download_request** | [**\OpenAPI\Client\Model\PostV2ResourcesEmbedDownloadRequest**](../Model/PostV2ResourcesEmbedDownloadRequest.md)| | [optional] |
176+
177+
### Return type
178+
179+
[**\OpenAPI\Client\Model\PostV2ResourcesEmbedDownload200Response**](../Model/PostV2ResourcesEmbedDownload200Response.md)
180+
181+
### Authorization
182+
183+
[token](../../README.md#token)
184+
185+
### HTTP request headers
186+
187+
- **Content-Type**: `application/json`
188+
- **Accept**: `application/json`
189+
190+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
191+
[[Back to Model list]](../../README.md#models)
192+
[[Back to README]](../../README.md)

docs/Model/DownloadRequest.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# # DownloadRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**download_request_id** | **int** | | [optional]
8+
**content_type** | **string** | | [optional]
9+
**content_id** | **int** | | [optional]
10+
**user_id** | **int** | | [optional]
11+
**token** | **string** | | [optional]
12+
**expires** | **int** | | [optional]
13+
14+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

docs/Model/DownloadStatus.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# # DownloadStatus
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**retry** | **bool** | | [optional]
8+
**url** | **string** | | [optional]
9+
10+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# # GetV2ResourcesEmbedDownload200Response
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**result** | **string** | | [optional]
8+
**data** | [**\OpenAPI\Client\Model\GetV2ResourcesEmbedDownload200ResponseData**](GetV2ResourcesEmbedDownload200ResponseData.md) | | [optional]
9+
10+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# # GetV2ResourcesEmbedDownload200ResponseData
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**status** | [**\OpenAPI\Client\Model\DownloadStatus**](DownloadStatus.md) | | [optional]
8+
9+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# # GetV2ResourcesEmbedLatest200Response
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**result** | **string** | | [optional]
8+
**data** | [**\OpenAPI\Client\Model\GetV2ResourcesEmbedLatest200ResponseData**](GetV2ResourcesEmbedLatest200ResponseData.md) | | [optional]
9+
10+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # GetV2ResourcesEmbedLatest200ResponseData
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**current** | [**\OpenAPI\Client\Model\Version**](Version.md) | | [optional]
8+
**latest** | [**\OpenAPI\Client\Model\Version**](Version.md) | | [optional]
9+
**has_usage_rights** | **bool** | | [optional]
10+
11+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# # PostV2ResourcesEmbedDownload200Response
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**result** | **string** | | [optional]
8+
**data** | [**\OpenAPI\Client\Model\PostV2ResourcesEmbedDownload200ResponseData**](PostV2ResourcesEmbedDownload200ResponseData.md) | | [optional]
9+
10+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# # PostV2ResourcesEmbedDownload200ResponseData
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**request** | [**\OpenAPI\Client\Model\DownloadRequest**](DownloadRequest.md) | | [optional]
8+
9+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

0 commit comments

Comments
 (0)