UnitType XML API Documentation (Last Modified: 9/7/2001 4:39:30 PM)

Basic Concepts
The UnitType XML API provides a list of Unit Types.
The base URL of this API is http://api.cisp.com/UnitType.XML.asp.
 
Input Variables
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
 
Return Document
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.
Unit Type Output Variables
Name Description Type
ID ID of the unit type Long
LABEL Text label for the unit type String
 
Sample Output
<?xml version="1.0" ?>
<ICOP>
- <UNIT_TYPE ID="0" LABEL="Other" />
- <UNIT_TYPE ID="1" LABEL="Setup" />
- <UNIT_TYPE ID="2" LABEL="Recurring" />
</ICOP>
 
Sample ASP Code
<%
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)
%>