All URIs are relative to https://api.builtbybit.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getV2Events() | GET /v2/events | Fetch a list of pending events |
| postV2EventsComplete() | POST /v2/events/complete | Mark events as complete |
getV2Events(): \OpenAPI\Client\Model\GetV2Events200ResponseFetch a list of pending events
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\EventsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getV2Events();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->getV2Events: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\GetV2Events200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postV2EventsComplete($post_v2_events_complete_request): \OpenAPI\Client\Model\PostV2EventsComplete200ResponseMark events as complete
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\EventsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$post_v2_events_complete_request = new \OpenAPI\Client\Model\PostV2EventsCompleteRequest(); // \OpenAPI\Client\Model\PostV2EventsCompleteRequest
try {
$result = $apiInstance->postV2EventsComplete($post_v2_events_complete_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->postV2EventsComplete: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_v2_events_complete_request | \OpenAPI\Client\Model\PostV2EventsCompleteRequest | [optional] |
\OpenAPI\Client\Model\PostV2EventsComplete200Response
No authorization required
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]