Exemplo n.º 1
0
        /// <summary>
        /// 设置企业号应用
        /// </summary>
        /// <param name="agentid"></param>
        /// <param name="report_location_flag"></param>
        /// <param name="logo_mediaid"></param>
        /// <param name="name"></param>
        /// <param name="description"></param>
        /// <param name="redirect_domain"></param>
        /// <param name="isreportuser"></param>
        /// <param name="isreportenter"></param>
        /// <returns></returns>
        public BaseRes Agent_Set(string agentid, string report_location_flag, string logo_mediaid, string name,
                                 string description, string redirect_domain, int isreportuser, int isreportenter)
        {
            var rel = QyAPI.Agent_Set(access_token, agentid, report_location_flag, logo_mediaid, name, description, redirect_domain, isreportuser, isreportenter);

            if (IsAccessTokenError(rel))
            {
                rel = QyAPI.Agent_Set(access_token, agentid, report_location_flag, logo_mediaid, name, description, redirect_domain, isreportuser, isreportenter);
                IsAccessTokenError(rel, false);
            }
            return(rel);
        }