@@ -4,20 +4,18 @@ All URIs are relative to https://api.builtbybit.com, except if the operation def
44
55| Method | HTTP request | Description |
66| ------------- | ------------- | ------------- |
7- | [ ** getV2Analytics()** ] ( DefaultApi.md#getV2Analytics ) | ** GET** /v2/analytics | Fetch a list of analytics definitions |
8- | [ ** getV2AnalyticsGraph()** ] ( DefaultApi.md#getV2AnalyticsGraph ) | ** GET** /v2/analytics/graph | Fetch analytics graph data |
9- | [ ** getV2Events()** ] ( DefaultApi.md#getV2Events ) | ** GET** /v2/events | Fetch a list of pending events |
10- | [ ** postV2EventsComplete()** ] ( DefaultApi.md#postV2EventsComplete ) | ** POST** /v2/events/complete | Mark events as complete |
11- | [ ** postV2ResourcesCreatorUpdate()** ] ( DefaultApi.md#postV2ResourcesCreatorUpdate ) | ** POST** /v2/resources/creator/update | Post a resource update |
7+ | [ ** getV2Health()** ] ( DefaultApi.md#getV2Health ) | ** GET** /v2/health | Retrieve a health status |
8+ | [ ** getV2ResourcesCreatorCoupons()** ] ( DefaultApi.md#getV2ResourcesCreatorCoupons ) | ** GET** /v2/resources/creator/coupons | Fetch a list of your coupons |
9+ | [ ** getV2ResourcesCreatorStores()** ] ( DefaultApi.md#getV2ResourcesCreatorStores ) | ** GET** /v2/resources/creator/stores | Fetch a list of your stores |
1210
1311
14- ## ` getV2Analytics ()`
12+ ## ` getV2Health ()`
1513
1614``` php
17- getV2Analytics (): \OpenAPI\Client\Model\GetV2Analytics200Response
15+ getV2Health (): \OpenAPI\Client\Model\GetV2Health200Response
1816```
1917
20- Fetch a list of analytics definitions
18+ Retrieve a health status
2119
2220### Example
2321
@@ -26,18 +24,24 @@ Fetch a list of analytics definitions
2624require_once(__DIR__ . '/vendor/autoload.php');
2725
2826
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+
2932
3033$apiInstance = new OpenAPI\Client\Api\DefaultApi(
3134 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3235 // This is optional, `GuzzleHttp\Client` will be used as default.
33- new GuzzleHttp\Client()
36+ new GuzzleHttp\Client(),
37+ $config
3438);
3539
3640try {
37- $result = $apiInstance->getV2Analytics ();
41+ $result = $apiInstance->getV2Health ();
3842 print_r($result);
3943} catch (Exception $e) {
40- echo 'Exception when calling DefaultApi->getV2Analytics : ', $e->getMessage(), PHP_EOL;
44+ echo 'Exception when calling DefaultApi->getV2Health : ', $e->getMessage(), PHP_EOL;
4145}
4246```
4347
@@ -47,11 +51,11 @@ This endpoint does not need any parameter.
4751
4852### Return type
4953
50- [ ** \OpenAPI\Client\Model\GetV2Analytics200Response ** ] ( ../Model/GetV2Analytics200Response .md )
54+ [ ** \OpenAPI\Client\Model\GetV2Health200Response ** ] ( ../Model/GetV2Health200Response .md )
5155
5256### Authorization
5357
54- No authorization required
58+ [ token ] ( ../../README.md#token )
5559
5660### HTTP request headers
5761
@@ -62,13 +66,13 @@ No authorization required
6266[[ Back to Model list]] ( ../../README.md#models )
6367[[ Back to README]] ( ../../README.md )
6468
65- ## ` getV2AnalyticsGraph ()`
69+ ## ` getV2ResourcesCreatorCoupons ()`
6670
6771``` php
68- getV2AnalyticsGraph($analytics, $period, $grouping, $filters, $start_date, $end_date ): \OpenAPI\Client\Model\GetV2AnalyticsGraph200Response
72+ getV2ResourcesCreatorCoupons( ): \OpenAPI\Client\Model\GetV2ResourcesCreatorCoupons200Response
6973```
7074
71- Fetch analytics graph data
75+ Fetch a list of your coupons
7276
7377### Example
7478
@@ -77,82 +81,24 @@ Fetch analytics graph data
7781require_once(__DIR__ . '/vendor/autoload.php');
7882
7983
80-
81- $apiInstance = new OpenAPI\Client\Api\DefaultApi(
82- // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
83- // This is optional, `GuzzleHttp\Client` will be used as default.
84- new GuzzleHttp\Client()
85- );
86- $analytics = NULL; // array
87- $period = 'period_example'; // string
88- $grouping = 'grouping_example'; // string
89- $filters = 'filters_example'; // string
90- $start_date = 'start_date_example'; // string | Only respected when 'period' = 'custom_range'.
91- $end_date = 'end_date_example'; // string | Only respected when 'period' = 'custom_range'.
92-
93- try {
94- $result = $apiInstance->getV2AnalyticsGraph($analytics, $period, $grouping, $filters, $start_date, $end_date);
95- print_r($result);
96- } catch (Exception $e) {
97- echo 'Exception when calling DefaultApi->getV2AnalyticsGraph: ', $e->getMessage(), PHP_EOL;
98- }
99- ```
100-
101- ### Parameters
102-
103- | Name | Type | Description | Notes |
104- | ------------- | ------------- | ------------- | ------------- |
105- | ** analytics** | [ ** array** ] ( ../Model/.md ) | | [ optional] |
106- | ** period** | ** string** | | [ optional] |
107- | ** grouping** | ** string** | | [ optional] |
108- | ** filters** | ** string** | | [ optional] |
109- | ** start_date** | ** string** | Only respected when ' ; period' ; = ; ' ; custom_range' ; . | [ optional] |
110- | ** end_date** | ** string** | Only respected when ' ; period' ; = ; ' ; custom_range' ; . | [ optional] |
111-
112- ### Return type
113-
114- [ ** \OpenAPI\Client\Model\GetV2AnalyticsGraph200Response** ] ( ../Model/GetV2AnalyticsGraph200Response.md )
115-
116- ### Authorization
117-
118- No authorization required
119-
120- ### HTTP request headers
121-
122- - ** Content-Type** : Not defined
123- - ** Accept** : ` application/json `
124-
125- [[ Back to top]] ( # ) [[ Back to API list]] ( ../../README.md#endpoints )
126- [[ Back to Model list]] ( ../../README.md#models )
127- [[ Back to README]] ( ../../README.md )
128-
129- ## ` getV2Events() `
130-
131- ``` php
132- getV2Events(): \OpenAPI\Client\Model\GetV2Events200Response
133- ```
134-
135- Fetch a list of pending events
136-
137- ### Example
138-
139- ``` php
140- <?php
141- require_once(__DIR__ . '/vendor/autoload.php');
142-
84+ // Configure API key authorization: token
85+ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
86+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
87+ // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
14388
14489
14590$apiInstance = new OpenAPI\Client\Api\DefaultApi(
14691 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
14792 // This is optional, `GuzzleHttp\Client` will be used as default.
148- new GuzzleHttp\Client()
93+ new GuzzleHttp\Client(),
94+ $config
14995);
15096
15197try {
152- $result = $apiInstance->getV2Events ();
98+ $result = $apiInstance->getV2ResourcesCreatorCoupons ();
15399 print_r($result);
154100} catch (Exception $e) {
155- echo 'Exception when calling DefaultApi->getV2Events : ', $e->getMessage(), PHP_EOL;
101+ echo 'Exception when calling DefaultApi->getV2ResourcesCreatorCoupons : ', $e->getMessage(), PHP_EOL;
156102}
157103```
158104
@@ -162,11 +108,11 @@ This endpoint does not need any parameter.
162108
163109### Return type
164110
165- [ ** \OpenAPI\Client\Model\GetV2Events200Response ** ] ( ../Model/GetV2Events200Response .md )
111+ [ ** \OpenAPI\Client\Model\GetV2ResourcesCreatorCoupons200Response ** ] ( ../Model/GetV2ResourcesCreatorCoupons200Response .md )
166112
167113### Authorization
168114
169- No authorization required
115+ [ token ] ( ../../README.md#token )
170116
171117### HTTP request headers
172118
@@ -177,13 +123,13 @@ No authorization required
177123[[ Back to Model list]] ( ../../README.md#models )
178124[[ Back to README]] ( ../../README.md )
179125
180- ## ` postV2EventsComplete ()`
126+ ## ` getV2ResourcesCreatorStores ()`
181127
182128``` php
183- postV2EventsComplete($post_v2_events_complete_request ): \OpenAPI\Client\Model\PostV2EventsComplete200Response
129+ getV2ResourcesCreatorStores( ): \OpenAPI\Client\Model\GetV2ResourcesCreatorStores200Response
184130```
185131
186- Mark events as complete
132+ Fetch a list of your stores
187133
188134### Example
189135
@@ -192,95 +138,42 @@ Mark events as complete
192138require_once(__DIR__ . '/vendor/autoload.php');
193139
194140
195-
196- $apiInstance = new OpenAPI\Client\Api\DefaultApi(
197- // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
198- // This is optional, `GuzzleHttp\Client` will be used as default.
199- new GuzzleHttp\Client()
200- );
201- $post_v2_events_complete_request = new \OpenAPI\Client\Model\PostV2EventsCompleteRequest(); // \OpenAPI\Client\Model\PostV2EventsCompleteRequest
202-
203- try {
204- $result = $apiInstance->postV2EventsComplete($post_v2_events_complete_request);
205- print_r($result);
206- } catch (Exception $e) {
207- echo 'Exception when calling DefaultApi->postV2EventsComplete: ', $e->getMessage(), PHP_EOL;
208- }
209- ```
210-
211- ### Parameters
212-
213- | Name | Type | Description | Notes |
214- | ------------- | ------------- | ------------- | ------------- |
215- | ** post_v2_events_complete_request** | [ ** \OpenAPI\Client\Model\PostV2EventsCompleteRequest** ] ( ../Model/PostV2EventsCompleteRequest.md ) | | [ optional] |
216-
217- ### Return type
218-
219- [ ** \OpenAPI\Client\Model\PostV2EventsComplete200Response** ] ( ../Model/PostV2EventsComplete200Response.md )
220-
221- ### Authorization
222-
223- No authorization required
224-
225- ### HTTP request headers
226-
227- - ** Content-Type** : ` application/json `
228- - ** Accept** : ` application/json `
229-
230- [[ Back to top]] ( # ) [[ Back to API list]] ( ../../README.md#endpoints )
231- [[ Back to Model list]] ( ../../README.md#models )
232- [[ Back to README]] ( ../../README.md )
233-
234- ## ` postV2ResourcesCreatorUpdate() `
235-
236- ``` php
237- postV2ResourcesCreatorUpdate($post_v2_resources_creator_update_request): \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdate200Response
238- ```
239-
240- Post a resource update
241-
242- Creates a new version for the resource and optionally posts a public update message. 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.
243-
244- ### Example
245-
246- ``` php
247- <?php
248- require_once(__DIR__ . '/vendor/autoload.php');
249-
141+ // Configure API key authorization: token
142+ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
143+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
144+ // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
250145
251146
252147$apiInstance = new OpenAPI\Client\Api\DefaultApi(
253148 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
254149 // This is optional, `GuzzleHttp\Client` will be used as default.
255- new GuzzleHttp\Client()
150+ new GuzzleHttp\Client(),
151+ $config
256152);
257- $post_v2_resources_creator_update_request = new \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest(); // \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest
258153
259154try {
260- $result = $apiInstance->postV2ResourcesCreatorUpdate($post_v2_resources_creator_update_request );
155+ $result = $apiInstance->getV2ResourcesCreatorStores( );
261156 print_r($result);
262157} catch (Exception $e) {
263- echo 'Exception when calling DefaultApi->postV2ResourcesCreatorUpdate : ', $e->getMessage(), PHP_EOL;
158+ echo 'Exception when calling DefaultApi->getV2ResourcesCreatorStores : ', $e->getMessage(), PHP_EOL;
264159}
265160```
266161
267162### Parameters
268163
269- | Name | Type | Description | Notes |
270- | ------------- | ------------- | ------------- | ------------- |
271- | ** post_v2_resources_creator_update_request** | [ ** \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest** ] ( ../Model/PostV2ResourcesCreatorUpdateRequest.md ) | | [ optional] |
164+ This endpoint does not need any parameter.
272165
273166### Return type
274167
275- [ ** \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdate200Response ** ] ( ../Model/PostV2ResourcesCreatorUpdate200Response .md )
168+ [ ** \OpenAPI\Client\Model\GetV2ResourcesCreatorStores200Response ** ] ( ../Model/GetV2ResourcesCreatorStores200Response .md )
276169
277170### Authorization
278171
279- No authorization required
172+ [ token ] ( ../../README.md#token )
280173
281174### HTTP request headers
282175
283- - ** Content-Type** : ` application/json `
176+ - ** Content-Type** : Not defined
284177- ** Accept** : ` application/json `
285178
286179[[ Back to top]] ( # ) [[ Back to API list]] ( ../../README.md#endpoints )
0 commit comments