Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.67 KB

File metadata and controls

62 lines (43 loc) · 1.67 KB

D4T\MT5Sdk\AccountApi

All URIs are relative to /v1

Method HTTP request Description
accountLoginGet GET /account/{login} Get account by user login

accountLoginGet

\D4T\MT5Sdk\Models\Account accountLoginGet($login)

Get account by user login

Get account by user login

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
    // Configure HTTP bearer authorization: bearerAuth
    $config = D4T\MT5Sdk\Configuration::getDefaultConfiguration()
    ->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new D4T\MT5Sdk\MT5Manager\AccountApi(
    // 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
);
$login = "login_example"; // string | Login

try {
    $result = $apiInstance->accountLoginGet($login);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountLoginGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
login string Login

Return type

\D4T\MT5Sdk\Models\Account

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]