\Aculab\WebServicesWrapper\VoiceBiometricsUserGroupsWebService

Voice biometrics user groups web service class

Summary

Methods
Properties
Constants
setWebServicesServer()
setCryptoMethod()
setProxy()
__construct()
listUserGroups()
createUserGroup()
deleteUserGroup()
No public properties found
VERSION
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VERSION

VERSION

The wrapper version.

The wrapper version number.

Methods

setWebServicesServer()

setWebServicesServer(string  $wsserver) 

Set the web services server address.

This allows the web service requests to be directed to a specific server. The default is https://ws-<cloud_id>.aculabcloud.net

Parameters

string $wsserver

The base URL of the web services server.

setCryptoMethod()

setCryptoMethod(integer  $method) 

Set the crypto method used when connectiing to the web services server.

This allows a specific crypto method to be used when connecting to the web service server. The values should be one of the STREAM_CRYPTO_METHOD_TLSv1_N_CLIENT constants. The default is STREAM_CRYPTO_METHOD_ANY_CLIENT.

Parameters

integer $method

The crypto method to use.

setProxy()

setProxy(string  $proxy, boolean  $request_fulluri) 

Configures the proxy server to use when making Web Service requests.

Parameters

string $proxy

URI specifying address of proxy server. (e.g. tcp://proxy.example.com:5100).

boolean $request_fulluri

When set to TRUE, the entire URI will be used when constructing the request. While this is a non-standard request format, some proxy servers require it.

__construct()

__construct(string  $cloud_id, string  $username, string  $access_key) 

Create a voice biometrics user groups web service object.

Creates a web service to manage voice biometrics user groups.

Parameters

string $cloud_id

The cloud region identifier.

string $username

The cloud account username.

string $access_key

The cloud account's access key.

listUserGroups()

listUserGroups(string  $user_group_name = '') : array

List user groups.

This lists the details of the user groups that currently exist.

Parameters

string $user_group_name

The user group name to return details of. If it is the empty string then all existing user groups are returned.

Throws

\Aculab\WebServicesWrapper\WebServiceException

Returns

array —

Returns an array of UserGroup objects.

createUserGroup()

createUserGroup(string  $user_group_name) : \Aculab\WebServicesWrapper\VoiceBiometrics\UserGroup

Create a user group.

This creates a new user group.

Parameters

string $user_group_name

The name of the user group to create.

Throws

\Aculab\WebServicesWrapper\WebServiceException

Returns

\Aculab\WebServicesWrapper\VoiceBiometrics\UserGroup

The user group that was created.

deleteUserGroup()

deleteUserGroup(string  $user_group_name) : \DateTime

Delete a user group.

This deletes a user group.

Parameters

string $user_group_name

The name of the user group to delete.

Throws

\Aculab\WebServicesWrapper\WebServiceException

Returns

\DateTime —

The time the group was deleted.