Beispiel #1
0
        /// <summary>
        /// 将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用)
        /// </summary>
        /// <returns>The audit.</returns>
        /// <param name="accessToken">第三方平台获取到的该小程序授权的authorizer_access_token</param>
        /// <param name="address">小程序的页面地址</param>
        /// <param name="tag">小程序的标签,多个标签用空格分隔,标签不能多于10个,标签长度不超过20</param>
        /// <param name="firstClass">一级类目名称</param>
        /// <param name="secondClass">二级类目名称</param>
        /// <param name="firstId">一级类目的ID</param>
        /// <param name="secondId">二级类目的ID</param>
        /// <param name="title">小程序页面的标题,标题长度不超过32</param>
        public static WxAppSubmitAuditResponse SubmitAudit(string accessToken, string address, string tag, string firstClass, string secondClass, int firstId, int secondId, string title)
        {
            var request = new WxAppSubmitAuditRequest
            {
                ItemList = new WxAppSubmitAuditRequest.Item[] {
                    new WxAppSubmitAuditRequest.Item
                    {
                        Address     = address,
                        Tag         = tag,
                        FirstClass  = firstClass,
                        SecondClass = secondClass,
                        FirstId     = firstId,
                        SecondId    = secondId,
                        Title       = title
                    }
                }
            };

            return(SumitAuditDual(accessToken, request));
        }
Beispiel #2
0
        /// <summary>
        /// [多个页面]将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用)
        /// </summary>
        /// <returns>The audit dual.</returns>
        /// <param name="accessToken">Access token.</param>
        /// <param name="request">Request.</param>
        public static WxAppSubmitAuditResponse SumitAuditDual(string accessToken, WxAppSubmitAuditRequest request)
        {
            var resp = Http.PostQuery(_wxaSubmitAudit + accessToken, request);

            return(JsonConvert.DeserializeObject <WxAppSubmitAuditResponse>(resp));
        }