将主持人添加到Adobe Connect会议

时间:2020-04-30 05:18:10

标签: c# asp.net-mvc adobe-connect

我在项目中实施了Adobe connect now会议。我能够使用API​​成功创建会议,但无法将host添加到会议中。

调用Adobe Api的方法:-

private static async Task<HttpResponseMessage> CallAdobeApi(string urlSegment, bool isResponseCookieEnabled = false)
        {
            Uri address = new Uri(_meetingBaseUri + urlSegment);
            CookieContainer cookies = new CookieContainer();
            HttpClientHandler handler = new HttpClientHandler();
            handler.CookieContainer = cookies;
            HttpClient client = new HttpClient(handler);
            HttpResponseMessage response = client.GetAsync(address).Result;
            if (isResponseCookieEnabled)
            {
                IEnumerable<Cookie> responseCookies = cookies.GetCookies(address).Cast<Cookie>();
                foreach (Cookie cookie in responseCookies)
                    _authSessionToken = cookie.Value;
            }
            return response;
        }

会议主持人添加方法:-,此处principal-idmeeting-hosts文件夹的sco-id id,folder-idmy-meetings。根据文档Adobe Connect Documentation Link

我使用了相同的方法
public static async Task<HttpResponseMessage> AddMeetingHost(string principalId, string scoId)
        {
            return await CallAdobeApi($"?action=permissions-update&principal-id={principalId}&acl-id={scoId}&permission-id=host&session={_authSessionToken}");
        }

0 个答案:

没有答案