All URIs are relative to http://localhost:6542/v1
Method | HTTP request | Description |
---|---|---|
groupGroupNameGet | GET /group/{group_name} | Get group by name |
groupsGet | GET /groups/ | Get list of groups |
\D4T\MT4Sdk\Models\Group groupGroupNameGet($token, $group_name)
Get group by name
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new D4T\MT4Sdk\Api\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()
);
$token = "token_example"; // string | Session token
$group_name = "group_name_example"; // string | The name that needs to be fetched.
try {
$result = $apiInstance->groupGroupNameGet($token, $group_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupApi->groupGroupNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | Session token | |
group_name | string | The name that needs to be fetched. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\D4T\MT4Sdk\Models\ArrayOfGroups groupsGet($token)
Get list of groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new D4T\MT4Sdk\Api\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()
);
$token = "token_example"; // string | Session token
try {
$result = $apiInstance->groupsGet($token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupApi->groupsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | Session token |
\D4T\MT4Sdk\Models\ArrayOfGroups
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]