我需要有关eTapestry API的信息/示例示例。
谢谢, Koustubh
答案 0 :(得分:2)
可以在http://www.etapestry.com/files/api/home.html找到eTapestry API的主要文档(包括代码示例)。您需要https://atl.etapestry.com/prod/APIWebOrder.jsp中的沙箱帐户才能让系统对您的代码进行测试。
答案 1 :(得分:0)
为了更好地了解eTapestry API,请访问:
http://www.etapestry.com/files/api/home.html
登录方法的示例代码:
require("lib/utils.php");
require("lib/nusoap.php");
// Set login details and initial endpoint
$loginId = "INPUT_LOGIN_ID";
$password = "INPUT_PASSWORD";
$endpoint = "https://sna.etapestry.com/v2messaging/service?WSDL";
// Instantiate nusoap_client
echo "Establishing NuSoap Client...";
$nsc = new nusoap_client($endpoint, true);
echo "Done";
// Did an error occur?
checkStatus($nsc);
// Invoke login method
echo "Calling login method...";
$newEndpoint = $nsc->call("login", array($loginId, $password));
echo "Done";
// Did a soap fault occur?
checkStatus($nsc);
// Determine if the login method returned a value
if ($newEndpoint != "")
{
echo "New Endpoint: $newEndpoint";
// Instantiate nusoap_client with different endpoint
echo "Establishing NuSoap Client with new endpoint...";
$nsc = new nusoap_client($newEndpoint, true);
echo "Done";
// Did an error occur?
checkStatus($nsc);
// Invoke login method
echo "Calling login method...";
$nsc->call("login", array($loginId, $password));
echo "Done";
// Did a soap fault occur?
checkStatus($nsc);
}
// Output results
echo "Login Successful";
// Call logout method
stopEtapestrySession($nsc);