All URIs are relative to https://api.builtbybit.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getV2ResourcesCreatorAddons() | GET /v2/resources/creator/addons | Fetch a list of your resources' addons |
| getV2ResourcesCreatorBatch() | GET /v2/resources/creator/batch | Fetch a list of your batches edits |
| getV2ResourcesCreatorCoupons() | GET /v2/resources/creator/coupons | Fetch a list of your coupons |
| getV2ResourcesCreatorCouponsEntries() | GET /v2/resources/creator/coupons/entries | Fetch a list of your coupon entries |
| getV2ResourcesCreatorLicenses() | GET /v2/resources/creator/licenses | Fetch a list of your resources' licenses |
| getV2ResourcesCreatorPurchases() | GET /v2/resources/creator/purchases | Fetch a list of your resources' purchases |
| getV2ResourcesCreatorResources() | GET /v2/resources/creator/resources | Fetch a list of your resources |
| getV2ResourcesCreatorReviews() | GET /v2/resources/creator/reviews | Fetch a list of your resources' reviews |
| getV2ResourcesCreatorSaleEvents() | GET /v2/resources/creator/sale-events | Fetch a list of your sale events |
| getV2ResourcesCreatorSaleEventsEntries() | GET /v2/resources/creator/sale-events/entries | Fetch a list of your sale event entries |
| getV2ResourcesCreatorStores() | GET /v2/resources/creator/stores | Fetch a list of your stores |
| getV2ResourcesCreatorUpdates() | GET /v2/resources/creator/updates | Fetch a list of your resource's updates |
| getV2ResourcesCreatorVersions() | GET /v2/resources/creator/versions | Fetch a list of your resources' versions |
| postV2ResourcesCreatorBatch() | POST /v2/resources/creator/batch | Submit a new batch edit |
| postV2ResourcesCreatorCoupons() | POST /v2/resources/creator/coupons | Create a new coupon |
| postV2ResourcesCreatorUpdate() | POST /v2/resources/creator/update | Post a resource update |
getV2ResourcesCreatorAddons($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorAddons200ResponseFetch a list of your resources' addons
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorAddons($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorAddons: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorAddons200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorBatch($batch_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorBatch200ResponseFetch a list of your batches edits
<?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\ResourcesCreatorApi(
// 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
);
$batch_ids = NULL; // array | A comma-separated list of batch IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorBatch($batch_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorBatch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| batch_ids | array | A comma-separated list of batch IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorBatch200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorCoupons($coupon_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorCoupons200ResponseFetch a list of your coupons
<?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\ResourcesCreatorApi(
// 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
);
$coupon_ids = NULL; // array | A comma-separated list of coupon IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorCoupons($coupon_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorCoupons: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| coupon_ids | array | A comma-separated list of coupon IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorCoupons200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorCouponsEntries($coupon_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorCouponsEntries200ResponseFetch a list of your coupon entries
<?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\ResourcesCreatorApi(
// 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
);
$coupon_ids = NULL; // array | A comma-separated list of coupon IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorCouponsEntries($coupon_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorCouponsEntries: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| coupon_ids | array | A comma-separated list of coupon IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorCouponsEntries200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorLicenses($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200ResponseFetch a list of your resources' licenses
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorLicenses($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorLicenses: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorPurchases($resource_ids, $buyer_ids, $external_tids): \OpenAPI\Client\Model\GetV2ResourcesCreatorPurchases200ResponseFetch a list of your resources' purchases
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
$buyer_ids = NULL; // array | A comma-separated list of buyer IDs to filter on. No filter is applied if empty
$external_tids = NULL; // array | A comma-separated list of external transaction IDs (TIDs) to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorPurchases($resource_ids, $buyer_ids, $external_tids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorPurchases: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
| buyer_ids | array | A comma-separated list of buyer IDs to filter on. No filter is applied if empty | [optional] |
| external_tids | array | A comma-separated list of external transaction IDs (TIDs) to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorPurchases200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorResources($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorResources200ResponseFetch a list of your resources
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorResources($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorResources: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorResources200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorReviews($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorReviews200ResponseFetch a list of your resources' reviews
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ResourcesCreatorApi(
// 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()
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorReviews($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorReviews: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorReviews200Response
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorSaleEvents($sale_event_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorSaleEvents200ResponseFetch a list of your sale 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\ResourcesCreatorApi(
// 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
);
$sale_event_ids = NULL; // array | A comma-separated list of sale event IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorSaleEvents($sale_event_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorSaleEvents: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| sale_event_ids | array | A comma-separated list of sale event IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorSaleEvents200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorSaleEventsEntries($sale_event_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorSaleEventsEntries200ResponseFetch a list of your sale event entries
<?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\ResourcesCreatorApi(
// 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
);
$sale_event_ids = NULL; // array | A comma-separated list of sale event IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorSaleEventsEntries($sale_event_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorSaleEventsEntries: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| sale_event_ids | array | A comma-separated list of sale event IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorSaleEventsEntries200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorStores(): \OpenAPI\Client\Model\GetV2ResourcesCreatorStores200ResponseFetch a list of your stores
<?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\ResourcesCreatorApi(
// 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->getV2ResourcesCreatorStores();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorStores: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\GetV2ResourcesCreatorStores200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorUpdates($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorUpdates200ResponseFetch a list of your resource's updates
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorUpdates($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorUpdates: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorUpdates200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getV2ResourcesCreatorVersions($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorVersions200ResponseFetch a list of your resources' versions
<?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\ResourcesCreatorApi(
// 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
);
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
try {
$result = $apiInstance->getV2ResourcesCreatorVersions($resource_ids);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorVersions: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| resource_ids | array | A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
\OpenAPI\Client\Model\GetV2ResourcesCreatorVersions200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postV2ResourcesCreatorBatch($post_v2_resources_creator_batch_request): \OpenAPI\Client\Model\PostV2ResourcesCreatorBatch200ResponseSubmit a new batch edit
Batch edits will be processed in the background meaning a successful call to this endpoint does not guarantee that the edits have been completed. You will instead receive an identifier to a batch edit which you can then use to fetch the status of via the below endpoint. This is not an atomic operation meaning some resources may be edited successfully and others may not be due to an error. You may only batch edit resources you own currently.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ResourcesCreatorApi(
// 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_resources_creator_batch_request = new \OpenAPI\Client\Model\PostV2ResourcesCreatorBatchRequest(); // \OpenAPI\Client\Model\PostV2ResourcesCreatorBatchRequest
try {
$result = $apiInstance->postV2ResourcesCreatorBatch($post_v2_resources_creator_batch_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->postV2ResourcesCreatorBatch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_v2_resources_creator_batch_request | \OpenAPI\Client\Model\PostV2ResourcesCreatorBatchRequest | [optional] |
\OpenAPI\Client\Model\PostV2ResourcesCreatorBatch200Response
No authorization required
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postV2ResourcesCreatorCoupons($post_v2_resources_creator_coupons_request): \OpenAPI\Client\Model\PostV2ResourcesCreatorCoupons200ResponseCreate a new coupon
This endpoint is currently limited to percent-based coupons with a maximum discount of 50%.
<?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\ResourcesCreatorApi(
// 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
);
$post_v2_resources_creator_coupons_request = new \OpenAPI\Client\Model\PostV2ResourcesCreatorCouponsRequest(); // \OpenAPI\Client\Model\PostV2ResourcesCreatorCouponsRequest
try {
$result = $apiInstance->postV2ResourcesCreatorCoupons($post_v2_resources_creator_coupons_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->postV2ResourcesCreatorCoupons: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_v2_resources_creator_coupons_request | \OpenAPI\Client\Model\PostV2ResourcesCreatorCouponsRequest | [optional] |
\OpenAPI\Client\Model\PostV2ResourcesCreatorCoupons200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postV2ResourcesCreatorUpdate($post_v2_resources_creator_update_request): \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdate200ResponsePost a resource update
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.
<?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\ResourcesCreatorApi(
// 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
);
$post_v2_resources_creator_update_request = new \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest(); // \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest
try {
$result = $apiInstance->postV2ResourcesCreatorUpdate($post_v2_resources_creator_update_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResourcesCreatorApi->postV2ResourcesCreatorUpdate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_v2_resources_creator_update_request | \OpenAPI\Client\Model\PostV2ResourcesCreatorUpdateRequest | [optional] |
\OpenAPI\Client\Model\PostV2ResourcesCreatorUpdate200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]