Grandstream Networks GXV3175 Telephone User Manual


 
Grandstream Networks, Inc. GMI HTML SDK and API Guide Page 10 of 17
www.grandstream.com Last Updated: 07/2011
Description
Send data to specific port of specific host
Parameter and Return Value Parameter:
host - destination host or IP address
port - destination udp port
data - send data contents (format: string)
Return Value:
N/A
Note
N/A
4.12 simpleGMI.post()
Function simpleGMI. post(url, data, cb_ post)
Description
Send http “POST” request to specific host
Parameter and Return Value Parameter:
url - Destination url
data - Parameters sent with POST
cb_post - The return function for the response to the
POST request
For example: function cb_post(data)
The data parameter is for the response to the POST
request. (If the data in the response is in xml format, GMI
interface will transform it to JSON format. The data in
other format in the response will remain the same).
Return Value:
N/A
Note
N/A
4.13 simpleGMI.exit()
Function
simpleGMI.exit()
Description
Exit from GMI. The application programs from GMI will be
ended and the resource will be released.
Parameter and Return Value Parameter: