All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createLog() | POST /api/2024-03-01/{merchantId}/logs | Create a log |
createLog($merchant_id, $log_create_input): \Rvvup\Api\Model\LogRecord
Create a log
Logs information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: apiKey
$config = Rvvup\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Rvvup\Api\LogsApi(
// 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
);
$merchant_id = 'merchant_id_example'; // string | The merchant ID
$log_create_input = new \Rvvup\Api\Model\LogCreateInput(); // \Rvvup\Api\Model\LogCreateInput | The log to write
try {
$result = $apiInstance->createLog($merchant_id, $log_create_input);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LogsApi->createLog: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
merchant_id | string | The merchant ID | |
log_create_input | \Rvvup\Api\Model\LogCreateInput | The log to write |
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]