当前位置: 首页>>代码示例>>PHP>>正文


PHP HTTPClient::SaveApplicationData方法代码示例

本文整理汇总了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;
}
?>


开发者ID:romackdnr,项目名称:dnrpiggyments,代码行数:28,代码来源:SaveApplicationData.php


注:本文中的HTTPClient::SaveApplicationData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。