All operations not tagged 'free' require an active Ultimate subscription or invite-only permissions.
V2 documentation: https://builtbybit.com/wiki/api-v2/ \ OAuth2 documentation: https://builtbybit.com/wiki/oauth2/
For more information, please visit https://builtbybit.com/ticket.
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/BuiltByBit/api-wrapper-codegen-php.git"
}
],
"require": {
"BuiltByBit/api-wrapper-codegen-php": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
<?php
require_once('/path/to/builtbybit/api-wrapper-codegen-php/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?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\AnalyticsApi(
// 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->getV2Analytics();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnalyticsApi->getV2Analytics: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to https://api.builtbybit.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AnalyticsApi | getV2Analytics | GET /v2/analytics | Fetch a list of analytics definitions |
| AnalyticsApi | getV2AnalyticsGraph | GET /v2/analytics/graph | Fetch analytics graph data |
| AnalyticsApi | getV2AnalyticsSingle | GET /v2/analytics/single | Fetch a single analytics value |
| DefaultApi | getV2ResourcesCreatorBatch | GET /v2/resources/creator/batch | Fetch a list of your batches edits |
| DefaultApi | postV2ResourcesCreatorBatch | POST /v2/resources/creator/batch | Submit a new batch edit |
| EventsApi | getV2Events | GET /v2/events | Fetch a list of pending events |
| EventsApi | postV2EventsComplete | POST /v2/events/complete | Mark events as complete |
| HealthApi | getV2Health | GET /v2/health | Retrieve a health status |
| Oauth2Api | getOauth2Token | POST /oauth2/token | Request an access token using an existing grant |
| Oauth2Api | getOauth2TokenRevoke | POST /oauth2/token/revoke | Revoke an existing access or refresh token |
| ResourcesBuyerApi | getV2ResourcesBuyerLatest | GET /v2/resources/buyer/latest | Fetches the latest versions & license information |
| ResourcesCreatorApi | getV2ResourcesCreatorAddons | GET /v2/resources/creator/addons | Fetch a list of your resources' addons |
| ResourcesCreatorApi | getV2ResourcesCreatorBundles | GET /v2/resources/creator/bundles | Fetch a list of your bundles |
| ResourcesCreatorApi | getV2ResourcesCreatorCoupons | GET /v2/resources/creator/coupons | Fetch a list of your coupons |
| ResourcesCreatorApi | getV2ResourcesCreatorLicenses | GET /v2/resources/creator/licenses | Fetch a list of your resources' licenses |
| ResourcesCreatorApi | getV2ResourcesCreatorPurchases | GET /v2/resources/creator/purchases | Fetch a list of your resources' purchases |
| ResourcesCreatorApi | getV2ResourcesCreatorResources | GET /v2/resources/creator/resources | Fetch a list of your resources |
| ResourcesCreatorApi | getV2ResourcesCreatorReviews | GET /v2/resources/creator/reviews | Fetch a list of your resources' reviews |
| ResourcesCreatorApi | getV2ResourcesCreatorSaleEvents | GET /v2/resources/creator/sale-events | Fetch a list of your sale events |
| ResourcesCreatorApi | getV2ResourcesCreatorStores | GET /v2/resources/creator/stores | Fetch a list of your stores |
| ResourcesCreatorApi | getV2ResourcesCreatorUpdates | GET /v2/resources/creator/updates | Fetch a list of your resource's updates |
| ResourcesCreatorApi | getV2ResourcesCreatorVersions | GET /v2/resources/creator/versions | Fetch a list of your resources' versions |
| ResourcesCreatorApi | postV2ResourcesCreatorUpdate | POST /v2/resources/creator/update | Post a resource update |
| ResourcesDiscoveryApi | getResourcesDiscoverCategories | GET /v2/resources/discover/categories | Fetch a list of categories |
| ResourcesDiscoveryApi | getResourcesDiscoverResources | GET /v2/resources/discover/resources | Fetch a list of resources |
| ResourcesDiscoveryApi | getV2ResourcesDiscoverCartView | GET /v2/resources/discover/cart/view | View the user's cart items |
| ResourcesDiscoveryApi | getV2ResourcesDiscoverLicenses | GET /v2/resources/discover/licenses | Fetch a list of the user's licenses |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartAdd | POST /v2/resources/discover/cart/add | Add items to a user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCheckout | POST /v2/resources/discover/cart/checkout | Initiate a checkout of a user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCouponAdd | POST /v2/resources/discover/cart/coupon/add | Add a coupon to the user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCouponRemove | POST /v2/resources/discover/cart/coupon/remove | Remove a coupon from the user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartRemove | POST /v2/resources/discover/cart/remove | Remove an item from the user's cart |
- Addon
- Analytic
- AnalyticFiltersValue
- AnalyticGraphData
- AnalyticGraphDataPeriod
- AnalyticGraphDataPoint
- Batch
- Bundle
- CartItem
- CartItemDiscountsInner
- CartSummary
- Category
- Coupon
- Event
- Filter
- FilterChoice
- FilterValue
- GetOauth2Token200Response
- GetOauth2TokenRevoke200Response
- GetResourcesDiscoverCategories200Response
- GetResourcesDiscoverCategories200ResponseData
- GetResourcesDiscoverResources200Response
- GetResourcesDiscoverResources200ResponseData
- GetResourcesDiscoverResources4XXResponse
- GetResourcesDiscoverResources4XXResponseError
- GetV2Analytics200Response
- GetV2Analytics200ResponseData
- GetV2AnalyticsGraph200Response
- GetV2AnalyticsSingle200Response
- GetV2AnalyticsSingle200ResponseData
- GetV2AnalyticsSingle200ResponseDataPeriod
- GetV2Events200Response
- GetV2Events200ResponseData
- GetV2Health200Response
- GetV2ResourcesBuyerLatest200Response
- GetV2ResourcesBuyerLatest200ResponseData
- GetV2ResourcesCreatorAddons200Response
- GetV2ResourcesCreatorAddons200ResponseData
- GetV2ResourcesCreatorBatch200Response
- GetV2ResourcesCreatorBatch200ResponseData
- GetV2ResourcesCreatorBundles200Response
- GetV2ResourcesCreatorBundles200ResponseData
- GetV2ResourcesCreatorCoupons200Response
- GetV2ResourcesCreatorCoupons200ResponseData
- GetV2ResourcesCreatorLicenses200Response
- GetV2ResourcesCreatorLicenses200ResponseData
- GetV2ResourcesCreatorPurchases200Response
- GetV2ResourcesCreatorPurchases200ResponseData
- GetV2ResourcesCreatorResources200Response
- GetV2ResourcesCreatorResources200ResponseData
- GetV2ResourcesCreatorReviews200Response
- GetV2ResourcesCreatorReviews200ResponseData
- GetV2ResourcesCreatorSaleEvents200Response
- GetV2ResourcesCreatorSaleEvents200ResponseData
- GetV2ResourcesCreatorStores200Response
- GetV2ResourcesCreatorStores200ResponseData
- GetV2ResourcesCreatorUpdates200Response
- GetV2ResourcesCreatorUpdates200ResponseData
- GetV2ResourcesCreatorVersions200Response
- GetV2ResourcesCreatorVersions200ResponseData
- GetV2ResourcesDiscoverCartView200Response
- GetV2ResourcesDiscoverCartView200ResponseData
- GetV2ResourcesDiscoverLicenses200Response
- GetV2ResourcesDiscoverLicenses200ResponseData
- License
- ListStats
- Member
- PostV2EventsComplete200Response
- PostV2EventsCompleteRequest
- PostV2ResourcesCreatorBatch200Response
- PostV2ResourcesCreatorBatch200ResponseData
- PostV2ResourcesCreatorBatchRequest
- PostV2ResourcesCreatorBatchRequestChangesInner
- PostV2ResourcesCreatorUpdate200Response
- PostV2ResourcesCreatorUpdate200ResponseData
- PostV2ResourcesCreatorUpdateRequest
- PostV2ResourcesCreatorUpdateRequestFile
- PostV2ResourcesCreatorUpdateRequestUpdate
- PostV2ResourcesDiscoverCartAdd2XXResponse
- PostV2ResourcesDiscoverCartAddRequest
- PostV2ResourcesDiscoverCartCheckout200Response
- PostV2ResourcesDiscoverCartCheckout200ResponseData
- PostV2ResourcesDiscoverCartCouponAdd200Response
- PostV2ResourcesDiscoverCartCouponAddRequest
- PostV2ResourcesDiscoverCartCouponRemove200Response
- PostV2ResourcesDiscoverCartCouponRemoveRequest
- PostV2ResourcesDiscoverCartRemove200Response
- PostV2ResourcesDiscoverCartRemoveRequest
- Price
- Purchase
- Resource
- Review
- RichText
- SaleEvent
- SaleEventEntry
- Store
- Update
- Version
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
- Type:
OAuth - Flow:
accessCode - Authorization URL:
https://builtbybit.com/account/external/authorize - Scopes: N/A
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated by the OpenAPI Generator project:
- API version:
v2 - Build package:
org.openapitools.codegen.languages.PhpClientCodegen