Skip to content

Commit

Permalink
v13.7.5 添加 ShakeAroundApi.DeviceApplyStatus 接口
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Apr 24, 2016
1 parent cb23cab commit 34ab938
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 9 deletions.
36 changes: 36 additions & 0 deletions Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.MP.XML
Original file line number Diff line number Diff line change
Expand Up @@ -6047,6 +6047,16 @@
<param name="timeOut"></param>
<returns></returns>
</member>
<member name="M:Senparc.Weixin.MP.AdvancedAPIs.ShakeAroundApi.DeviceApplyStatus(System.String,System.Int32,System.Int32)">
<summary>
查询设备ID申请审核状态
接口说明 查询设备ID申请的审核状态。若单次申请的设备ID数量小于等于500个,系统会进行快速审核;若单次申请的设备ID数量大于500个,则在三个工作日内完成审核。
</summary>
<param name="accessTokenOrAppId">调用接口凭证</param>
<param name="appId">批次ID,申请设备ID时所返回的批次ID</param>
<param name="timeOut"></param>
<returns></returns>
</member>
<member name="M:Senparc.Weixin.MP.AdvancedAPIs.ShakeAroundApi.DeviceUpdate(System.String,System.Int64,System.String,System.Int64,System.Int64,System.String,System.Int32)">
<summary>
编辑设备信息
Expand Down Expand Up @@ -6248,6 +6258,32 @@
<param name="timeOut"></param>
<returns></returns>
</member>
<member name="T:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetDeviceStatusResultJson">
<summary>
查询审核状态返回结果
</summary>
</member>
<member name="P:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetDeviceStatusData.apply_time">
<summary>
提交申请的时间戳
</summary>
</member>
<member name="P:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetDeviceStatusData.audit_comment">
<summary>
审核备注,包括审核不通过的原因
</summary>
</member>
<member name="P:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetDeviceStatusData.audit_status">
<summary>
审核状态。0:审核未通过、1:审核中、2:审核已通过;审核会在三个工作日内完成
TODO:可以做成枚举
</summary>
</member>
<member name="P:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetDeviceStatusData.audit_time">
<summary>
确定审核结果的时间戳;若状态为审核中,则该时间值为0
</summary>
</member>
<member name="T:Senparc.Weixin.MP.AdvancedAPIs.ShakeAround.GetAuditStatusResultJson">
<summary>
查询审核状态返回结果
Expand Down
Binary file modified Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.MP.dll
Binary file not shown.
Binary file modified Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.Open.dll
Binary file not shown.
24 changes: 22 additions & 2 deletions Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.QY.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.QY.dll
Binary file not shown.
15 changes: 13 additions & 2 deletions Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Senparc.Weixin.MP.BuildOutPut/.net4.5/Senparc.Weixin.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
/*----------------------------------------------------------------
Copyright (C) 2016 Senparc
文件名:ShakeAroundApi.cs
文件功能描述:摇一摇周边接口
创建标识:Senparc - 20150512
修改标识:Senparc - 20160216
修改描述:添加 查询设备与页面的关联关系 接口
修改标识:Senparc - 20160424
修改描述:v13.7.5 添加 ShakeAroundApi.DeviceApplyStatus 接口
----------------------------------------------------------------*/

/*
Expand Down Expand Up @@ -91,6 +94,31 @@ public static DeviceApplyResultJson DeviceApply(string accessTokenOrAppId, int q
}, accessTokenOrAppId);
}


/// <summary>
/// 查询设备ID申请审核状态
/// 接口说明 查询设备ID申请的审核状态。若单次申请的设备ID数量小于等于500个,系统会进行快速审核;若单次申请的设备ID数量大于500个,则在三个工作日内完成审核。
/// </summary>
/// <param name="accessTokenOrAppId">调用接口凭证</param>
/// <param name="appId">批次ID,申请设备ID时所返回的批次ID</param>
/// <param name="timeOut"></param>
/// <returns></returns>
public static GetDeviceStatusResultJson DeviceApplyStatus(string accessTokenOrAppId, int appId,int timeOut = Config.TIME_OUT)
{
return ApiHandlerWapper.TryCommonApi(accessToken =>
{
string url = string.Format("https://api.weixin.qq.com/shakearound/device/applystatus?access_token={0}", accessToken.AsUrlData());

var data = new
{
apply_id = appId,
};

return CommonJsonSend.Send<GetDeviceStatusResultJson>(null, url, data, CommonJsonSendType.POST, timeOut);

}, accessTokenOrAppId);
}

/// <summary>
/// 编辑设备信息
/// 设备编号,若填了UUID、major、minor,则可不填设备编号,若二者都填,则以设备编号为优先
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*----------------------------------------------------------------
Copyright (C) 2016 Senparc
文件名:GetDeviceStatusResultJson.cs
文件功能描述:查询审核状态返回结果
创建标识:Senparc - 20160424
----------------------------------------------------------------*/

using Senparc.Weixin.Entities;

namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
{
/// <summary>
/// 查询审核状态返回结果
/// </summary>
public class GetDeviceStatusResultJson : WxJsonResult
{
public GetDeviceStatusData data { get; set; }
}

public class GetDeviceStatusData
{
/// <summary>
/// 提交申请的时间戳
/// </summary>
public long apply_time { get; set; }
/// <summary>
/// 审核备注,包括审核不通过的原因
/// </summary>
public string audit_comment { get; set; }
/// <summary>
/// 审核状态。0:审核未通过、1:审核中、2:审核已通过;审核会在三个工作日内完成
/// TODO:可以做成枚举
/// </summary>
public int audit_status { get; set; }
/// <summary>
/// 确定审核结果的时间戳;若状态为审核中,则该时间值为0
/// </summary>
public long audit_time { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("13.7.3.*")]
[assembly: AssemblyVersion("13.7.5.*")]
//[assembly: AssemblyInformationalVersion("13.3.1-alpha")]
//[assembly: AssemblyFileVersion("0.4.2.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
<Compile Include="AdvancedAPIs\Semantic\SemanticResult\Semantic_WebsiteResult.cs" />
<Compile Include="AdvancedAPIs\Semantic\SemanticResult\Semantic_SearchResult.cs" />
<Compile Include="AdvancedAPIs\ShakeAround\ShakeAroundApi.cs" />
<Compile Include="AdvancedAPIs\ShakeAround\ShakeAroundJson\GetDeviceStatusResultJson.cs" />
<Compile Include="AdvancedAPIs\ShakeAround\ShakeAroundJson\GetAuditStatusResultJson.cs" />
<Compile Include="AdvancedAPIs\ShakeAround\ShakeAroundJson\RelationSearchResultJson.cs" />
<Compile Include="AdvancedAPIs\ShakeAround\ShakeAroundJson\PageManageResultJson.cs" />
Expand Down

0 comments on commit 34ab938

Please sign in to comment.