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

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.

 

Return to Documentation Home I Return to Sangoma Support