All URIs are relative to https://api.mypurecloud.com
Method | HTTP request | Description |
---|---|---|
deleteVoicemailMessage | DELETE /api/v2/voicemail/messages/{messageId} | Delete a voicemail message. |
deleteVoicemailMessages | DELETE /api/v2/voicemail/messages | Delete all voicemail messages |
getVoicemailGroupMailbox | GET /api/v2/voicemail/groups/{groupId}/mailbox | Get the group's mailbox information |
getVoicemailGroupMessages | GET /api/v2/voicemail/groups/{groupId}/messages | List voicemail messages |
getVoicemailGroupPolicy | GET /api/v2/voicemail/groups/{groupId}/policy | Get a group's voicemail policy |
getVoicemailMailbox | GET /api/v2/voicemail/mailbox | Get the current user's mailbox information |
getVoicemailMeMailbox | GET /api/v2/voicemail/me/mailbox | Get the current user's mailbox information |
getVoicemailMeMessages | GET /api/v2/voicemail/me/messages | List voicemail messages |
getVoicemailMePolicy | GET /api/v2/voicemail/me/policy | Get the current user's voicemail policy |
getVoicemailMessage | GET /api/v2/voicemail/messages/{messageId} | Get a voicemail message |
getVoicemailMessageMedia | GET /api/v2/voicemail/messages/{messageId}/media | Get media playback URI for this voicemail message |
getVoicemailMessages | GET /api/v2/voicemail/messages | List voicemail messages |
getVoicemailPolicy | GET /api/v2/voicemail/policy | Get a policy |
getVoicemailQueueMessages | GET /api/v2/voicemail/queues/{queueId}/messages | List voicemail messages |
getVoicemailSearch | GET /api/v2/voicemail/search | Search voicemails using the q64 value returned from a previous search |
getVoicemailUserpolicy | GET /api/v2/voicemail/userpolicies/{userId} | Get a user's voicemail policy |
patchVoicemailGroupPolicy | PATCH /api/v2/voicemail/groups/{groupId}/policy | Update a group's voicemail policy |
patchVoicemailMePolicy | PATCH /api/v2/voicemail/me/policy | Update the current user's voicemail policy |
patchVoicemailMessage | PATCH /api/v2/voicemail/messages/{messageId} | Update a voicemail message |
patchVoicemailUserpolicy | PATCH /api/v2/voicemail/userpolicies/{userId} | Update a user's voicemail policy |
postVoicemailMessages | POST /api/v2/voicemail/messages | Copy a voicemail message to a user or group |
postVoicemailSearch | POST /api/v2/voicemail/search | Search voicemails |
putVoicemailMessage | PUT /api/v2/voicemail/messages/{messageId} | Update a voicemail message |
putVoicemailPolicy | PUT /api/v2/voicemail/policy | Update a policy |
deleteVoicemailMessage($messageId)
Delete a voicemail message.
A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$messageId = "messageId_example"; // string | Message ID
try {
$apiInstance->deleteVoicemailMessage($messageId);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->deleteVoicemailMessage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messageId | string | Message ID |
void (empty response body)
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteVoicemailMessages()
Delete all voicemail messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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 {
$apiInstance->deleteVoicemailMessages();
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->deleteVoicemailMessages: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo getVoicemailGroupMailbox($groupId)
Get the group's mailbox information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$groupId = "groupId_example"; // string | groupId
try {
$result = $apiInstance->getVoicemailGroupMailbox($groupId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailGroupMailbox: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | groupId |
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing getVoicemailGroupMessages($groupId, $pageSize, $pageNumber)
List voicemail messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$groupId = "groupId_example"; // string | Group ID
$pageSize = 25; // int | Page size
$pageNumber = 1; // int | Page number
try {
$result = $apiInstance->getVoicemailGroupMessages($groupId, $pageSize, $pageNumber);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailGroupMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | Group ID | |
pageSize | int | Page size | [optional] [default to 25] |
pageNumber | int | Page number | [optional] [default to 1] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy getVoicemailGroupPolicy($groupId)
Get a group's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$groupId = "groupId_example"; // string | Group ID
try {
$result = $apiInstance->getVoicemailGroupPolicy($groupId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailGroupPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | Group ID |
\PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo getVoicemailMailbox()
Get the current user's mailbox information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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->getVoicemailMailbox();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMailbox: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo getVoicemailMeMailbox()
Get the current user's mailbox information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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->getVoicemailMeMailbox();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMeMailbox: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\PureCloudPlatform\Client\V2\Model\VoicemailMailboxInfo
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing getVoicemailMeMessages($pageSize, $pageNumber)
List voicemail messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$pageSize = 25; // int | Page size
$pageNumber = 1; // int | Page number
try {
$result = $apiInstance->getVoicemailMeMessages($pageSize, $pageNumber);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMeMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
pageSize | int | Page size | [optional] [default to 25] |
pageNumber | int | Page number | [optional] [default to 1] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy getVoicemailMePolicy()
Get the current user's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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->getVoicemailMePolicy();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMePolicy: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessage getVoicemailMessage($messageId, $expand)
Get a voicemail message
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$messageId = "messageId_example"; // string | Message ID
$expand = array("expand_example"); // string[] | If the caller is a known user, which fields, if any, to expand
try {
$result = $apiInstance->getVoicemailMessage($messageId, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMessage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messageId | string | Message ID | |
expand | string[] | If the caller is a known user, which fields, if any, to expand | [optional] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessage
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMediaInfo getVoicemailMessageMedia($messageId, $formatId)
Get media playback URI for this voicemail message
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$messageId = "messageId_example"; // string | Message ID
$formatId = "WEBM"; // string | The desired media format.
try {
$result = $apiInstance->getVoicemailMessageMedia($messageId, $formatId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMessageMedia: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messageId | string | Message ID | |
formatId | string | The desired media format. | [optional] [default to WEBM] |
\PureCloudPlatform\Client\V2\Model\VoicemailMediaInfo
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing getVoicemailMessages($ids, $expand)
List voicemail messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$ids = "ids_example"; // string | An optional comma separated list of VoicemailMessage ids
$expand = array("expand_example"); // string[] | If the caller is a known user, which fields, if any, to expand
try {
$result = $apiInstance->getVoicemailMessages($ids, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
ids | string | An optional comma separated list of VoicemailMessage ids | [optional] |
expand | string[] | If the caller is a known user, which fields, if any, to expand | [optional] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy getVoicemailPolicy()
Get a policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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->getVoicemailPolicy();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing getVoicemailQueueMessages($queueId, $pageSize, $pageNumber)
List voicemail messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$queueId = "queueId_example"; // string | Queue ID
$pageSize = 25; // int | Page size
$pageNumber = 1; // int | Page number
try {
$result = $apiInstance->getVoicemailQueueMessages($queueId, $pageSize, $pageNumber);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailQueueMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
queueId | string | Queue ID | |
pageSize | int | Page size | [optional] [default to 25] |
pageNumber | int | Page number | [optional] [default to 1] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessageEntityListing
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailsSearchResponse getVoicemailSearch($q64, $expand)
Search voicemails using the q64 value returned from a previous search
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$q64 = "q64_example"; // string | q64
$expand = array("expand_example"); // string[] | expand
try {
$result = $apiInstance->getVoicemailSearch($q64, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailSearch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
q64 | string | q64 | |
expand | string[] | expand | [optional] |
\PureCloudPlatform\Client\V2\Model\VoicemailsSearchResponse
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy getVoicemailUserpolicy($userId)
Get a user's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$userId = "userId_example"; // string | User ID
try {
$result = $apiInstance->getVoicemailUserpolicy($userId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->getVoicemailUserpolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
userId | string | User ID |
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy patchVoicemailGroupPolicy($groupId, $body)
Update a group's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$groupId = "groupId_example"; // string | Group ID
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy(); // \PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy | The group's voicemail policy
try {
$result = $apiInstance->patchVoicemailGroupPolicy($groupId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->patchVoicemailGroupPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | Group ID | |
body | \PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy | The group's voicemail policy |
\PureCloudPlatform\Client\V2\Model\VoicemailGroupPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy patchVoicemailMePolicy($body)
Update the current user's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy(); // \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy | The user's voicemail policy
try {
$result = $apiInstance->patchVoicemailMePolicy($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->patchVoicemailMePolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy | The user's voicemail policy |
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessage patchVoicemailMessage($messageId, $body)
Update a voicemail message
A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$messageId = "messageId_example"; // string | Message ID
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailMessage(); // \PureCloudPlatform\Client\V2\Model\VoicemailMessage | VoicemailMessage
try {
$result = $apiInstance->patchVoicemailMessage($messageId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->patchVoicemailMessage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messageId | string | Message ID | |
body | \PureCloudPlatform\Client\V2\Model\VoicemailMessage | VoicemailMessage |
\PureCloudPlatform\Client\V2\Model\VoicemailMessage
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy patchVoicemailUserpolicy($userId, $body)
Update a user's voicemail policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$userId = "userId_example"; // string | User ID
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy(); // \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy | The user's voicemail policy
try {
$result = $apiInstance->patchVoicemailUserpolicy($userId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->patchVoicemailUserpolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
userId | string | User ID | |
body | \PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy | The user's voicemail policy |
\PureCloudPlatform\Client\V2\Model\VoicemailUserPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessage postVoicemailMessages($body)
Copy a voicemail message to a user or group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$body = new \PureCloudPlatform\Client\V2\Model\CopyVoicemailMessage(); // \PureCloudPlatform\Client\V2\Model\CopyVoicemailMessage |
try {
$result = $apiInstance->postVoicemailMessages($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->postVoicemailMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \PureCloudPlatform\Client\V2\Model\CopyVoicemailMessage | [optional] |
\PureCloudPlatform\Client\V2\Model\VoicemailMessage
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailsSearchResponse postVoicemailSearch($body)
Search voicemails
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailSearchRequest(); // \PureCloudPlatform\Client\V2\Model\VoicemailSearchRequest | Search request options
try {
$result = $apiInstance->postVoicemailSearch($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->postVoicemailSearch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \PureCloudPlatform\Client\V2\Model\VoicemailSearchRequest | Search request options |
\PureCloudPlatform\Client\V2\Model\VoicemailsSearchResponse
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailMessage putVoicemailMessage($messageId, $body)
Update a voicemail message
A user voicemail can only be modified by its associated user. A group voicemail can only be modified by a user that is a member of the group. A queue voicemail can only be modified by a participant of the conversation the voicemail is associated with.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$messageId = "messageId_example"; // string | Message ID
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailMessage(); // \PureCloudPlatform\Client\V2\Model\VoicemailMessage | VoicemailMessage
try {
$result = $apiInstance->putVoicemailMessage($messageId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->putVoicemailMessage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messageId | string | Message ID | |
body | \PureCloudPlatform\Client\V2\Model\VoicemailMessage | VoicemailMessage |
\PureCloudPlatform\Client\V2\Model\VoicemailMessage
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy putVoicemailPolicy($body)
Update a policy
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: PureCloud OAuth
$config = PureCloudPlatform\Client\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PureCloudPlatform\Client\V2\Api\VoicemailApi(
// 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
);
$body = new \PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy(); // \PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy | Policy
try {
$result = $apiInstance->putVoicemailPolicy($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoicemailApi->putVoicemailPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy | Policy |
\PureCloudPlatform\Client\V2\Model\VoicemailOrganizationPolicy
[PureCloud OAuth](../../README.md#PureCloud OAuth)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]