Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.06 KB

TransactionsApi.md

File metadata and controls

68 lines (48 loc) · 2.06 KB

MarketPay\TransactionsApi

All URIs are relative to https://localhost

Method HTTP request Description
transactionsGetList GET /v2.1/Transactions

transactionsGetList

\MarketPay\Model\TransactionResponseResponseList transactionsGetList($page, $per_page, $before_date, $after_date, $sort)

Example

<?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\TransactionsApi(
    // 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->transactionsGetList($page, $per_page, $before_date, $after_date, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TransactionsApi->transactionsGetList: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
page int [optional]
per_page int [optional]
before_date int [optional]
after_date int [optional]
sort string [optional]

Return type

\MarketPay\Model\TransactionResponseResponseList

Authorization

oauth2

HTTP request headers

  • 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]