diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs index 8569a8ec..7811bbab 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaSecExtensions.cs @@ -504,6 +504,98 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + + /// + /// 异步调用 [POST] /wxa/sec/vod/authorizecopyright 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWxaSecVodAuthorizeCopyrightAsync(this WechatApiClient client, Models.WxaSecVodAuthorizeCopyrightRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "authorizecopyright") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/deauthorizecopyright 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWxaSecVodDeauthorizeCopyrightAsync(this WechatApiClient client, Models.WxaSecVodDeauthorizeCopyrightRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "deauthorizecopyright") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/getcopyrightauthorizationlist 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWxaSecVodGetCopyrightAuthorizationListAsync(this WechatApiClient client, Models.WxaSecVodGetCopyrightAuthorizationListRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getcopyrightauthorizationlist") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /wxa/sec/vod/getcopyrightauthorizedlist 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWxaSecVodGetCopyrightAuthorizedListAsync(this WechatApiClient client, Models.WxaSecVodGetCopyrightAuthorizedListRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getcopyrightauthorizedlist") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } #endregion #region Vod/Upload diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.cs new file mode 100644 index 00000000..82ed83d6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.cs @@ -0,0 +1,45 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/authorizecopyright 接口的请求。 + /// + public class WxaSecVodAuthorizeCopyrightRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置授权的剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_ids")] + [System.Text.Json.Serialization.JsonPropertyName("drama_ids")] + public IList DramaIdList { get; set; } = new List(); + + /// + /// 获取或设置授权类型。 + /// + [Newtonsoft.Json.JsonProperty("authorization_type")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_type")] + public int AuthorizationType { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string? AuthorizedAppId { get; set; } + + /// + /// 获取或设置被授权方主体证件号。 + /// + [Newtonsoft.Json.JsonProperty("authorized_subject_cert_no")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_subject_cert_no")] + public string? AuthorizedSubjectCertificateNumber { get; set; } + + /// + /// 获取或设置授权到期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public long? ExpireTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.cs new file mode 100644 index 00000000..fa9048f7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/authorizecopyright 接口的响应。 + /// + public class WxaSecVodAuthorizeCopyrightResponse : 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/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.cs new file mode 100644 index 00000000..84e69304 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/deauthorizecopyright 接口的请求。 + /// + public class WxaSecVodDeauthorizeCopyrightRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置解除授权的剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_ids")] + [System.Text.Json.Serialization.JsonPropertyName("drama_ids")] + public IList DramaIdList { get; set; } = new List(); + + /// + /// 获取或设置授权类型。 + /// + [Newtonsoft.Json.JsonProperty("authorization_type")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_type")] + public int AuthorizationType { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string? AuthorizedAppId { get; set; } + + /// + /// 获取或设置被授权方主体证件号。 + /// + [Newtonsoft.Json.JsonProperty("authorized_subject_cert_no")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_subject_cert_no")] + public string? AuthorizedSubjectCertificateNumber { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.cs new file mode 100644 index 00000000..b4cc890a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/deauthorizecopyright 接口的响应。 + /// + public class WxaSecVodDeauthorizeCopyrightResponse : WechatApiResponse + { + public static class Types + { + public class Result : WxaSecVodAuthorizeCopyrightResponse.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/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.cs new file mode 100644 index 00000000..c5466011 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getcopyrightauthorizationlist 接口的请求。 + /// + public class WxaSecVodGetCopyrightAuthorizationListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置授权的剧目 ID。 + /// + [Newtonsoft.Json.JsonProperty("drama_id")] + [System.Text.Json.Serialization.JsonPropertyName("drama_id")] + public long? DramaId { get; set; } + + /// + /// 获取或设置授权类型。 + /// + [Newtonsoft.Json.JsonProperty("authorization_type")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_type")] + public int? AuthorizationType { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string? AuthorizedAppId { get; set; } + + /// + /// 获取或设置被授权方主体证件号。 + /// + [Newtonsoft.Json.JsonProperty("authorized_subject_cert_no")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_subject_cert_no")] + public string? AuthorizedSubjectCertificateNumber { 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/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.cs new file mode 100644 index 00000000..53285278 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.cs @@ -0,0 +1,78 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getcopyrightauthorizationlist 接口的响应。 + /// + public class WxaSecVodGetCopyrightAuthorizationListResponse : WechatApiResponse + { + public static class Types + { + public class DramaCopyright + { + /// + /// 获取或设置剧目 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("authorization_type")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_type")] + public int AuthorizationType { get; set; } + + /// + /// 获取或设置被授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorized_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_appid")] + public string? AuthorizedAppId { get; set; } + + /// + /// 获取或设置被授权方主体证件号。 + /// + [Newtonsoft.Json.JsonProperty("authorized_subject_cert_no")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_subject_cert_no")] + public string? AuthorizedSubjectCertificateNumber { get; set; } + + /// + /// 获取或设置授权时间戳。 + /// + [Newtonsoft.Json.JsonProperty("authorized_time")] + [System.Text.Json.Serialization.JsonPropertyName("authorized_time")] + public long AuthorizeTimestamp { get; set; } + + /// + /// 获取或设置授权到期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public long? ExpireTimestamp { get; set; } + } + } + + /// + /// 获取或设置授权列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.DramaCopyright[] DramaCopyrightList { 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/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.cs new file mode 100644 index 00000000..7eeaeb30 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getcopyrightauthorizedlist 接口的请求。 + /// + public class WxaSecVodGetCopyrightAuthorizedListRequest : 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/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.cs new file mode 100644 index 00000000..a56408a5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/sec/vod/getcopyrightauthorizedlist 接口的响应。 + /// + public class WxaSecVodGetCopyrightAuthorizedListResponse : WechatApiResponse + { + public static class Types + { + public class DramaCopyright : WxaSecVodGetCopyrightAuthorizationListResponse.Types.DramaCopyright + { + } + } + + /// + /// 获取或设置授权列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.DramaCopyright[] DramaCopyrightList { 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/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.json new file mode 100644 index 00000000..1b657529 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightRequest.json @@ -0,0 +1,6 @@ +{ + "authorization_type": 2, + "authorized_appid": "wx*************", + "drama_ids": [ 10001, 10009 ], + "expire_time": 1729157743 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.json new file mode 100644 index 00000000..d65fbce1 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodAuthorizeCopyrightResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": 0, + "errmsg": "ok", + "result": [ + { + "drama_id": 10001, + "errcode": 0, + "errmsg": "ok" + }, + { + "drama_id": 10009, + "errcode": 0, + "errmsg": "ok" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.json new file mode 100644 index 00000000..97348cf1 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightRequest.json @@ -0,0 +1,5 @@ +{ + "authorization_type": 2, + "authorized_appid": "wx*************", + "drama_ids": [ 10001, 10009 ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.json new file mode 100644 index 00000000..d65fbce1 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodDeauthorizeCopyrightResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": 0, + "errmsg": "ok", + "result": [ + { + "drama_id": 10001, + "errcode": 0, + "errmsg": "ok" + }, + { + "drama_id": 10009, + "errcode": 0, + "errmsg": "ok" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.json new file mode 100644 index 00000000..5bf54ccf --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListRequest.json @@ -0,0 +1,6 @@ +{ + "authorization_type": 2, + "authorized_appid": "wx*************", + "offset": 0, + "limit": 2 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.json new file mode 100644 index 00000000..218e1466 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizationListResponse.json @@ -0,0 +1,25 @@ +{ + "errcode": 0, + "errmsg": "ok", + "total_count": 5, + "list": [ + { + "authorizer_appid": "wx123456789", + "authorization_type": 2, + "authorized_appid": "wx**********", + "authorized_subject_cert_no": "", + "drama_id": 10001, + "authorized_time": 1702020510, + "expire_time": 0 + }, + { + "authorizer_appid": "wx123456789", + "authorization_type": 2, + "authorized_appid": "wx**********", + "authorized_subject_cert_no": "", + "drama_id": 10002, + "authorized_time": 1702020510, + "expire_time": 0 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.json new file mode 100644 index 00000000..e816de4a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListRequest.json @@ -0,0 +1,5 @@ +{ + "authorizer_appid": "wxwx123456789", + "offset": 0, + "limit": 2 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.json new file mode 100644 index 00000000..218e1466 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaSec/Vod/Authorize/Copyright/WxaSecVodGetCopyrightAuthorizedListResponse.json @@ -0,0 +1,25 @@ +{ + "errcode": 0, + "errmsg": "ok", + "total_count": 5, + "list": [ + { + "authorizer_appid": "wx123456789", + "authorization_type": 2, + "authorized_appid": "wx**********", + "authorized_subject_cert_no": "", + "drama_id": 10001, + "authorized_time": 1702020510, + "expire_time": 0 + }, + { + "authorizer_appid": "wx123456789", + "authorization_type": 2, + "authorized_appid": "wx**********", + "authorized_subject_cert_no": "", + "drama_id": 10002, + "authorized_time": 1702020510, + "expire_time": 0 + } + ] +}