The UnitType XML API provides a list of Unit Types. |
The base URL of this API is http://api.cisp.com/UnitType.XML.asp. |
|
Name |
Description |
ClientID |
Client code identifying the client information to access |
ID |
ID of the unit type |
|
Name |
Min |
Max |
Type |
Required |
ClientID |
4 |
4 |
String |
True |
ID |
1 |
3 |
Long |
False |
|
|
The return value is a standard XML document with ICOP as the root node. |
Each section of the output variables listed below is a child node to the ICOP node. Each parameter within that section is an attribute to that section's node. |
Name |
Description |
Type |
ID |
ID of the unit type |
Long |
LABEL |
Text label for the unit type |
String |
|
|
<?xml version="1.0" ?>
<ICOP>
- <UNIT_TYPE ID="0" LABEL="Other" />
- <UNIT_TYPE ID="1" LABEL="Setup" />
- <UNIT_TYPE ID="2" LABEL="Recurring" />
</ICOP>
|
|
<%
Option Explicit
Dim objXML, objXSL
' Create the MSXML DOMDocument object for the xml document output of the API
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.load "http://api.cisp.cc/UnitType.XML.asp?ClientID=DEMO"
' Create the MSXML DOMDocument object for the xsl stylesheet to transform the xml
Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
objXSL.async = False
objXSL.load Server.MapPath("UnitType.xsl")
' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>
|