VERSION
VERSION
The wrapper version.
The wrapper version number.
Report Web Service.
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
string | $wsserver | The base URL of the web services server. |
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.
integer | $method | The crypto method to use. |
startReport(string $type, \DateTime|string $start, \DateTime|string $end) : string
Start generating a report.
This starts generation of a new report containing comma-separated values.
string | $type | The type of the required content of the report, such as "adr", "cdr", "fdr", "msg" or "err". See the web services documentation for details of the types available. |
\DateTime|string | $start | The point at which at the report should start. If a string is given, it must be in the format "YYYY-MM-DD_hh:mm:ss". |
\DateTime|string | $end | The point at which at the report should end. If a string is given, it must be in the format "YYYY-MM-DD_hh:mm:ss". |
The filename of the report.
getReportContent(string $filename) : string
Get a report contents.
This downloads a completed report from Aculab Cloud and returns the contents.
string | $filename | The filename of the report to download. |
The file contents.
getReportToFile(string $filename, string $local_filename) : integer
Get the file contents to a local file.
This downloads a completed report from Aculab Cloud and stores is as a local file.
string | $filename | The filename of the report to download. |
string | $local_filename | The local file to write to. |
The amount of data written to the local file.