物联网后台管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

93 lines
2.8 KiB

<?php
namespace app\common\AepSdk\Apis;
use app\common\AepSdk\Apis\Core\AepSdkCore;
require_once dirname(__DIR__) . '\Apis\Core\AepSdkCore.php';
class Device_archives
{
//参数body: 类型json, 参数不可以为空
// 描述:body,具体参考平台api说明
public static function DeleteArchivesInfo($appKey, $appSecret, $body)
{
$path = "/device_archives/deleteArchivesInfo";
$headers = null;
$param = null;
$version = "20231117042743";
$application = $appKey;
$secret = $appSecret;
$response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
if ($response != null) {
return $response;
}
return null;
}
//参数body: 类型json, 参数不可以为空
// 描述:body,具体参考平台api说明
public static function GetArchivesAttribute($appKey, $appSecret, $body)
{
$path = "/device_archives/getArchivesAttr";
$headers = null;
$param = null;
$version = "20231117042748";
$application = $appKey;
$secret = $appSecret;
$response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
if ($response != null) {
return $response;
}
return null;
}
//参数body: 类型json, 参数不可以为空
// 描述:body,具体参考平台api说明
public static function UpdateArchivesInfo($appKey, $appSecret, $body)
{
$path = "/device_archives/updateArchivesInfo";
$headers = null;
$param = null;
$version = "20231117042738";
$application = $appKey;
$secret = $appSecret;
$response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
if ($response != null) {
return $response;
}
return null;
}
//参数productId: 类型long, 参数不可以为空
// 描述:
//参数deviceId: 类型String, 参数不可以为空
// 描述:
public static function GetArchivesInfoDetailById($appKey, $appSecret, $productId, $deviceId)
{
$path = "/device_archives/getArchivesInfoDetailById";
$headers = null;
$param = array();
$param["productId"] = $productId;
$param["deviceId"] = $deviceId;
$version = "20231117042731";
$application = $appKey;
$secret = $appSecret;
$response = AepSdkCore::sendSDkRequest($path, $headers, $param, null, $version, $application, $secret, "GET");
if ($response != null) {
return $response;
}
return null;
}
}