All URIs are relative to https://api.wall.et, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
archiveAdvertisementCredit() | DELETE /v2/payment/advertisementCredit/{id} | Archive ad credit |
createAdvertisementCredit() | POST /v2/payment/advertisementCredit | Create ad credit |
fetchAdvertisementCreditById() | GET /v2/payment/advertisementCredit/{id} | Fetch ad credit |
fetchAdvertisementCreditScans() | GET /v2/payment/advertisementCredit/scans/{id} | Fetch scans |
fetchAllAdvertisementCredits() | GET /v2/payment/advertisementCredit/all | Fetch all active ad credits |
restoreAdvertisementCredit() | PATCH /v2/payment/advertisementCredit/{id} | Restore ad credit |
updateAdvertisementCredit() | PUT /v2/payment/advertisementCredit/{id} | Update ad credit |
archiveAdvertisementCredit($id): \OpenAPI\Client\Model\WTAdvertisementCredit
Archive ad credit
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$id = NULL; // mixed
try {
$result = $apiInstance->archiveAdvertisementCredit($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->archiveAdvertisementCredit: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\WTAdvertisementCredit
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createAdvertisementCredit($wt_advertisement_credit_create_params): \OpenAPI\Client\Model\WTAdvertisementCredit
Create ad credit
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$wt_advertisement_credit_create_params = new \OpenAPI\Client\Model\WTAdvertisementCreditCreateParams(); // \OpenAPI\Client\Model\WTAdvertisementCreditCreateParams
try {
$result = $apiInstance->createAdvertisementCredit($wt_advertisement_credit_create_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->createAdvertisementCredit: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
wt_advertisement_credit_create_params | \OpenAPI\Client\Model\WTAdvertisementCreditCreateParams |
\OpenAPI\Client\Model\WTAdvertisementCredit
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fetchAdvertisementCreditById($id): \OpenAPI\Client\Model\WTAdvertisementCredit
Fetch ad credit
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$id = NULL; // mixed
try {
$result = $apiInstance->fetchAdvertisementCreditById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->fetchAdvertisementCreditById: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\WTAdvertisementCredit
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fetchAdvertisementCreditScans($id): \OpenAPI\Client\Model\WTAdvertisementCreditScan[]
Fetch scans
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$id = NULL; // mixed
try {
$result = $apiInstance->fetchAdvertisementCreditScans($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->fetchAdvertisementCreditScans: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\WTAdvertisementCreditScan[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fetchAllAdvertisementCredits($is_archive_included): \OpenAPI\Client\Model\WTAdvertisementCredit[]
Fetch all active ad credits
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$is_archive_included = True; // bool
try {
$result = $apiInstance->fetchAllAdvertisementCredits($is_archive_included);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->fetchAllAdvertisementCredits: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
is_archive_included | bool | [optional] |
\OpenAPI\Client\Model\WTAdvertisementCredit[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restoreAdvertisementCredit($id): \OpenAPI\Client\Model\WTAdvertisementCredit
Restore ad credit
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$id = NULL; // mixed
try {
$result = $apiInstance->restoreAdvertisementCredit($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->restoreAdvertisementCredit: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed |
\OpenAPI\Client\Model\WTAdvertisementCredit
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateAdvertisementCredit($id, $wt_advertisement_credit_update_params): \OpenAPI\Client\Model\WTAdvertisementCredit
Update ad credit
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AdvertisementCreditsApi(
// 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()
);
$id = NULL; // mixed
$wt_advertisement_credit_update_params = new \OpenAPI\Client\Model\WTAdvertisementCreditUpdateParams(); // \OpenAPI\Client\Model\WTAdvertisementCreditUpdateParams
try {
$result = $apiInstance->updateAdvertisementCredit($id, $wt_advertisement_credit_update_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdvertisementCreditsApi->updateAdvertisementCredit: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | mixed | ||
wt_advertisement_credit_update_params | \OpenAPI\Client\Model\WTAdvertisementCreditUpdateParams |
\OpenAPI\Client\Model\WTAdvertisementCredit
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]