Phone API Reference - Classes - NetRequest - open
Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70
open
Description
Sets the request method and request URL. This method differs from the standard XMLHttpRequest's open() method by only accepting two parameters (all requests are asynchronous, and the user/password are entered in the request object's user and password properties.)
Basic Example:Â
request.open(method, url); |
Â
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
url | Yes | string | Â | URL to send the request to. |
method | Yes | string | Â | HTTP method to use; such as GET or POST. |
Â