All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
groupGroupNameGet | GET /group/{group_name} | Get group by name |
groupsGet | GET /groups/ | Get list of groups |
\D4T\MT5Sdk\Models\Group groupGroupNameGet($group_name)
Get group by name
Get group by name
<?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\GroupApi(
// 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
);
$group_name = "group_name_example"; // string | The name that needs to be fetched.
try {
$result = $apiInstance->groupGroupNameGet($group_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupApi->groupGroupNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
group_name | string | The name that needs to be fetched. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] groupsGet()
Get list of groups
<?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\GroupApi(
// 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
);
try {
$result = $apiInstance->groupsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupApi->groupsGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
string[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]