本文整理汇总了PHP中HTTPClient::SaveApplicationData方法的典型用法代码示例。如果您正苦于以下问题:PHP HTTPClient::SaveApplicationData方法的具体用法?PHP HTTPClient::SaveApplicationData怎么用?PHP HTTPClient::SaveApplicationData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTTPClient
的用法示例。
在下文中一共展示了HTTPClient::SaveApplicationData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setApplicationData
// <!--type: string-->
$app_data->SoftwareVersion = 'v2.054';
// <!--type: string-->
$app_data->SoftwareVersionDate = '2011-02-10';
// <!--type: string-->
$app_data->PTLSSocketId = trim(Settings::PTLSSocketId);
/*
* Save Application Data
*
* Note: Store the Application Profile Id after this step. This will remain
* static for your application unless you update your PTLS Socket Id. This step
* only needs to occur during first time application setup.
*
*/
if ($_applicationProfileId == null) {
$applicationData = setApplicationData($app_data);
$response = $client->SaveApplicationData($applicationData);
$_applicationProfileId = $response;
// Print Application Data
echo '<div style="text-align:center; border-width: thin; border-color: black; border-style:solid; "><h1>Application Data</h1></div>';
echo '<ul><li>ApplicationProfileId:</b><font color="#800080"> ' . $_applicationProfileId . '</li></ul></font><br />';
}
function setApplicationData($appData)
{
$applicationData = '<applicationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">' . '<ApplicationAttended>' . $appData->ApplicationAttended . '</ApplicationAttended>' . '<ApplicationLocation>' . $appData->ApplicationLocation . '</ApplicationLocation>' . '<ApplicationName>' . $appData->ApplicationName . '</ApplicationName>' . '<DeveloperId>' . $appData->DeveloperId . '</DeveloperId>' . '<HardwareType>' . $appData->HardwareType . '</HardwareType>' . '<PINCapability>' . $appData->PINCapability . '</PINCapability>' . '<PTLSSocketId>' . $appData->PTLSSocketId . '</PTLSSocketId>' . '<ReadCapability>' . $appData->ReadCapability . '</ReadCapability>' . '<SerialNumber>' . $appData->SerialNumber . '</SerialNumber>' . '<SoftwareVersion>' . $appData->SoftwareVersion . '</SoftwareVersion>' . '<SoftwareVersionDate>' . $appData->SoftwareVersionDate . '</SoftwareVersionDate>' . '<VendorId>' . $appData->VendorId . '</VendorId>' . '</applicationData>';
return $applicationData;
}
?>