The ServicePlanClose XML API closes a service plan and provides a confirmation back. |
The base URL of this API is http://api.cisp.com/ServicePlanClose.XML.asp. |
|
Name |
Description |
ClientID |
Client code identifying the client information to access |
UserName |
Customer account login |
Password |
Customer account password |
Type |
Customer account type (Dialup = 1, Shell = 2, Email = 5) |
|
Name |
Min |
Max |
Type |
Required |
ClientID |
4 |
4 |
String |
True |
UserName |
N/A |
N/A |
String |
True |
Password |
N/A |
N/A |
String |
True |
Type |
1 |
1 |
Integer |
True |
|
|
The return value is a standard XML document with ICOP as the root node. |
The output section listed below is a child node to the ICOP node. Each parameter within that variable is an attribute to that section's node. |
Name |
Description |
Type |
ID |
ID of the client |
String |
USERNAME |
Customer account login |
String |
TYPE |
Type of account (Dialup = 1, Shell = 2, Email = 5) |
Integer |
CLOSED |
Success or Failure |
Boolean |
|
|
<?xml version="1.0" ?>
<ICOP>
- <RESULT ID="DEMO" USERNAME="johndoe@demo.com" TYPE="1" CLOSED="True" />
</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/ServicePlanClose.XML.asp?ClientID=DEMO&UserName=johndoe@demo.com&Password=demo&Type=1"
' 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("ServicePlanClose.xsl")
' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>
|