diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs index fc509163..6ddd26c1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs @@ -570,6 +570,86 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); } + + /// + /// 异步调用 [POST] /wxa/sec/vod/authorizedrama 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-1-%E5%A2%9E%E5%8A%A0%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 + /// + /// + /// + /// + /// + public static async Task ExecuteWxaSecVodAuthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodAuthorizeDramaRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "authorizedrama") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/deauthorizedrama 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-2-%E8%A7%A3%E9%99%A4%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 + /// + /// + /// + /// + /// + public static async Task ExecuteWxaSecVodDeauthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodDeauthorizeDramaRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "deauthorizedrama") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/getauthorizeobjects 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-3-%E6%9F%A5%E8%AF%A2%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF + /// + /// + /// + /// + /// + public static async Task ExecuteWxaSecVodGetAuthorizeObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizeObjectsRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizeobjects") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/getauthorizedobjects 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-4-%E6%9F%A5%E8%AF%A2%E8%A2%AB%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF + /// + /// + /// + /// + /// + public static async Task ExecuteWxaSecVodGetAuthorizedObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizedObjectsRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizedobjects") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } #endregion #endregion } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.cs new file mode 100644 index 00000000..e8e9dd0d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/authorizedrama 接口的请求。 + /// + public class WxaSecVodAuthorizeDramaRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置授权的剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + public IList DramaIdList { get; set; } = new List(); + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string AuthorizedAppId { get; set; } = string.Empty; + + /// + /// 获取或设置授权到期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authz_expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("authz_expire_time")] + public long? ExpireTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.cs new file mode 100644 index 00000000..516028a2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/authorizedrama 接口的响应。 + /// + public class WxaSecVodAuthorizeDramaResponse : WechatApiResponse + { + public static class Types + { + public class Result + { + /// + /// 获取或设置剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DramaId { get; set; } + + /// + /// 获取或设置错误码。 + /// + [Newtonsoft.Json.JsonProperty("errcode")] + [System.Text.Json.Serialization.JsonPropertyName("errcode")] + public int ErrorCode { get; set; } + + /// + /// 获取或设置错误原因。 + /// + [Newtonsoft.Json.JsonProperty("errmsg")] + [System.Text.Json.Serialization.JsonPropertyName("errmsg")] + public string ErrorMessage { get; set; } = default!; + } + } + + /// + /// 获取或设置结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result")] + [System.Text.Json.Serialization.JsonPropertyName("result")] + public Types.Result[] ResultList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.cs new file mode 100644 index 00000000..a9033189 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/deauthorizedrama 接口的请求。 + /// + public class WxaSecVodDeauthorizeDramaRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置解除授权的剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + public IList DramaIdList { get; set; } = new List(); + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string AuthorizedAppId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.cs new file mode 100644 index 00000000..7b8a56b8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/deauthorizedrama 接口的响应。 + /// + public class WxaSecVodDeauthorizeDramaResponse : WechatApiResponse + { + public static class Types + { + public class Result : WxaSecVodAuthorizeDramaResponse.Types.Result + { + } + } + + /// + /// 获取或设置结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result")] + [System.Text.Json.Serialization.JsonPropertyName("result")] + public Types.Result[] ResultList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.cs new file mode 100644 index 00000000..f250992b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getauthorizeobjects 接口的请求。 + /// + public class WxaSecVodGetAuthorizeObjectsRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + public long? DramaId { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string? AuthorizedAppId { get; set; } + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int? Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.cs new file mode 100644 index 00000000..45b42b35 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getauthorizeobjects 接口的响应。 + /// + public class WxaSecVodGetAuthorizeObjectsResponse : WechatApiResponse + { + public static class Types + { + public class Object + { + /// + /// 获取或设置剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DramaId { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string AuthorizedAppId { get; set; } = default!; + + /// + /// 获取或设置授权时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authorized_time")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_time")] + public long AuthorizeTimestamp { get; set; } + + /// + /// 获取或设置授权到期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authz_expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("authz_expire_time")] + public long? ExpireTimestamp { get; set; } + } + } + + /// + /// 获取或设置授权列表。 + /// + [Newtonsoft.Json.JsonProperty("objects")] + [System.Text.Json.Serialization.JsonPropertyName("objects")] + public Types.Object[] ObjectList { get; set; } = default!; + + /// + /// 获取或设置记录总数。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.cs new file mode 100644 index 00000000..26a4cfff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getauthorizedobjects 接口的请求。 + /// + public class WxaSecVodGetAuthorizedObjectsRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorizer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")] + public string? AuthorizerAppId { get; set; } + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int? Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.cs new file mode 100644 index 00000000..d4e46a83 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getauthorizedobjects 接口的响应。 + /// + public class WxaSecVodGetAuthorizedObjectsResponse : WechatApiResponse + { + public static class Types + { + public class Object + { + /// + /// 获取或设置剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DramaId { get; set; } + + /// + /// 获取或设置授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorizer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")] + public string AuthorizerAppId { get; set; } = default!; + + /// + /// 获取或设置授权时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authorized_time")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_time")] + public long AuthorizeTimestamp { get; set; } + + /// + /// 获取或设置授权到期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authz_expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("authz_expire_time")] + public long? ExpireTimestamp { get; set; } + } + } + + /// + /// 获取或设置授权列表。 + /// + [Newtonsoft.Json.JsonProperty("objects")] + [System.Text.Json.Serialization.JsonPropertyName("objects")] + public Types.Object[] ObjectList { get; set; } = default!; + + /// + /// 获取或设置记录总数。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.json new file mode 100644 index 00000000..eaed9644 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaRequest.json @@ -0,0 +1,5 @@ +{ + "authorized_appid": "wx*************", + "drama_id": [ 100200, 100205 ], + "authz_expire_time": 0 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.json new file mode 100644 index 00000000..69970ea5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodAuthorizeDramaResponse.json @@ -0,0 +1,15 @@ +{ + "errcode": 0, + "errmsg": "ok", + "result": [ + { + "drama_id": 100200, + "errcode": 0 + }, + { + "drama_id": 100205, + "errcode": 1, + "errmsg": "获取剧目100205失败!" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.json new file mode 100644 index 00000000..031e7321 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaRequest.json @@ -0,0 +1,4 @@ +{ + "authorized_appid": "wx*************", + "drama_id": [ 100200, 100205 ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.json new file mode 100644 index 00000000..8cbc9a6c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodDeauthorizeDramaResponse.json @@ -0,0 +1,15 @@ +{ + "errcode": 0, + "errmsg": "ok", + "result": [ + { + "drama_id": 100200, + "errcode": 0 + }, + { + "drama_id": 100205, + "errcode": 1, + "errmsg": "获取剧目100205的授权信息失败!" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.json new file mode 100644 index 00000000..91219128 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsRequest.json @@ -0,0 +1,4 @@ +{ + "drama_id": 100206, + "limit": 100 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.json new file mode 100644 index 00000000..1b5f5842 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizeObjectsResponse.json @@ -0,0 +1,19 @@ +{ + "errcode": 0, + "errmsg": "ok", + "objects": [ + { + "drama_id": 100206, + "authorized_appid": "wx**********", + "authorized_time": 1702020510, + "authz_expire_time": 0 + }, + { + "drama_id": 100206, + "authorized_appid": "wx**********", + "authorized_time": 1702020549, + "authz_expire_time": 1703120549 + } + ], + "total_count": 2 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.json new file mode 100644 index 00000000..7826a5ed --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsRequest.json @@ -0,0 +1,4 @@ +{ + "authorizer_appid": "wx*********", + "limit": 100 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.json new file mode 100644 index 00000000..a692e7fd --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Drama/WxaSecVodGetAuthorizedObjectsResponse.json @@ -0,0 +1,13 @@ +{ + "errcode": 0, + "errmsg": "ok", + "objects": [ + { + "drama_id": 100206, + "authorizer_appid": "wx**********", + "authorized_time": 1702020510, + "authz_expire_time": 0 + } + ], + "total_count": 1 +}