OPS initialize
You could create a new OPS object with the aid of the initialize method.
def initialize ops_ip_address, http_api_service_port=7780, api_extension=nil, username=nil, password=nil
Constructor parameters
| Parameter name | Value | Description | Default value | Mandatory |
| ops_ip_address | string value e.g. '192.168.0.1' |
IP address of Ozeki Phone System PBX. | (None) | Yes |
| http_api_service_port | int value e.g. 7780 |
The Ozeki Phone System HTTP API service listener port. | 7780 | No |
| api_extension | string value e.g. '9999' |
The Ozeki Phone System API extension phone number. | nil | No |
| username | string value, e.g. 'admin' |
The username to connect Ozeki Phone System PBX. | nil | No |
| password | string value, e.g. 'password' |
The password for the given username. | nil | No |
Example
|
ops = OPS.new '192.168.0.1', nil, "9999" |