Standard CCAPI config settings
if ( remoteRequests ) {
// create object for the remote webService call
ccapiObj = createObject("webservice", ccapiConfig.webserviceURL);
}
else {
// create object for the LOCAL webservice call
ccapiObj = createObject("component", ccapiConfig.localServicePath);
}
// call the login API
foo = ccapiObj.csLogin(
site = ccapiConfig.site,
csUserID = ccapiConfig.userID,
csPassword = ccapiConfig.password,
subSiteID = ccapiConfig.subsiteID,
subSiteURL = ''
);
CCAPI Object
Login Failed
Login -- #ssid# (#foo#)
// call the login API
foo = ccapiObj.cslogout(ssid);
Logout -- #foo#
STANDARD CS CCAPI ERROR
Click the link above to run.
== ADF CCAPI 1.0 ==
ccapiObj1 = server.ADF.objectFactory.getBean("ccapi_1_0");
ccapiObj1.initCCAPI();
ccapiLoginRet1 = ccapiObj1.login(1);
ccapiSSID1 = ccapiObj1.getSSID();
Login -- #ccapiSSID1#
Logout -- #ccapiLogoutRet1#
ADF CCAPI 1.0 ERROR
Click the link above to run.
== ADF CCAPI 2.0 ==
(If you are logged in to CommonSpot this test will log you out.)
ccapiObj2 = server.ADF.objectFactory.getBean("ccapi_2_0");
ccapiObj2.initCCAPI();
ccapiLoginRet2 = ccapiObj2.login(subsiteID=1,remote=remoteRequests);
ccapiSSID2 = ccapiObj2.getSSID();
Login -- #ccapiSSID2#
Logout -- #ccapiLogoutRet2#
ADF CCAPI 2.0 ERROR
Click the link above to run.
== ADF CAMMAND API 1.0 ==
(If you are logged in to CommonSpot this test will log you out.)
apiObj = server.ADF.objectFactory.getBean("api_1_0");
apiObj.init();
apiLoginRet = apiObj.login(remote=remoteRequests,forceSubsiteID=0);
apiToken = apiObj.getAPIToken();
Login -- #apiToken#
Logout -- #apiLogoutRet#
ADF API 1.0 ERROR
Click the link above to run.