All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
transfersGet | GET /v2.1/Transfers/{TransferId} | |
transfersGetList | GET /v2.1/Transfers | |
transfersPost | POST /v2.1/Transfers |
\MarketPay\Model\TransferResponse transfersGet($transfer_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = MarketPay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new MarketPay\Api\TransfersApi(
// 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
);
$transfer_id = 789; // int |
try {
$result = $apiInstance->transfersGet($transfer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->transfersGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
transfer_id | int |
\MarketPay\Model\TransferResponse
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MarketPay\Model\TransferResponseResponseList transfersGetList($page, $per_page, $before_date, $after_date, $sort)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = MarketPay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new MarketPay\Api\TransfersApi(
// 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
);
$page = 56; // int |
$per_page = 56; // int |
$before_date = 789; // int |
$after_date = 789; // int |
$sort = "sort_example"; // string |
try {
$result = $apiInstance->transfersGetList($page, $per_page, $before_date, $after_date, $sort);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->transfersGetList: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | [optional] | |
per_page | int | [optional] | |
before_date | int | [optional] | |
after_date | int | [optional] | |
sort | string | [optional] |
\MarketPay\Model\TransferResponseResponseList
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MarketPay\Model\TransferResponse transfersPost($body)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = MarketPay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new MarketPay\Api\TransfersApi(
// 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
);
$body = new \MarketPay\Model\TransferPost(); // \MarketPay\Model\TransferPost |
try {
$result = $apiInstance->transfersPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->transfersPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \MarketPay\Model\TransferPost | [optional] |
\MarketPay\Model\TransferResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]