Skip to content

Latest commit

 

History

History
108 lines (74 loc) · 2.92 KB

GroupApi.md

File metadata and controls

108 lines (74 loc) · 2.92 KB

D4T\MT4Sdk\GroupApi

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

groupGroupNameGet

\D4T\MT4Sdk\Models\Group groupGroupNameGet($token, $group_name)

Get group by name

Example

<?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;
}
?>

Parameters

Name Type Description Notes
token string Session token
group_name string The name that needs to be fetched.

Return type

\D4T\MT4Sdk\Models\Group

Authorization

No authorization required

HTTP request headers

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

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

groupsGet

\D4T\MT4Sdk\Models\ArrayOfGroups groupsGet($token)

Get list of groups

Example

<?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;
}
?>

Parameters

Name Type Description Notes
token string Session token

Return type

\D4T\MT4Sdk\Models\ArrayOfGroups

Authorization

No authorization required

HTTP request headers

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

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