All URIs are relative to https://slingshot.egoiapp.com/api/
Method | HTTP request | Description |
---|---|---|
listGroups | GET /v2/groups | Get All Groups |
\Swagger\Client\Model\GroupResponse[] listGroups($channel)
Get All Groups
Retrieve all groups to sort messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\GroupsApi(
// 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
);
$channel = "channel_example"; // string | The channel of the groups. Can be `email` or `sms`, otherwise returns all groups.
try {
$result = $apiInstance->listGroups($channel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupsApi->listGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
channel | string | The channel of the groups. Can be `email` or `sms`, otherwise returns all groups. | [optional] |
\Swagger\Client\Model\GroupResponse[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]