public void HasFormatInfo() { CmService cm = new CmService(apiContext); ResponseMessage r = cm.HasFormatInfo(userToken, "c4da6a8cc56f4b5599754ba2d0d3e86b"); Assert.IsTrue(r.Code == "0"); }
public void SaveTimeLine() { CmService cm = new CmService(apiContext); ResponseMessage <SaveClipResponse> r = cm.SaveTimeLine(userToken, path, "title", "conentid", JsonHelper.ToObject <EditorMediaJson>("")); Assert.IsTrue(r.Code == "0"); }
public void GeFolderList() { CmService cm = new CmService(apiContext); ResponseMessage <List <FolderInfo> > r = cm.GeFolderList(userToken, path); Assert.IsTrue(r.Code == "0"); }
public void GetClipInfo() { CmService cm = new CmService(apiContext); ResponseMessage <ObjectInfo> r = cm.GetClipInfo(userToken, "6a350b570ecf40549016b3c434eb0c18", "32", "http"); Assert.IsTrue(r.Code == "0"); }
public ApiContext(string apiUrl, string renderApiUrl, string privateToken = "", string siteCode = "") { Uri u = new Uri(apiUrl); apiUrl = u.ToString(); if (apiUrl.EndsWith("/")) { apiUrl = apiUrl.Substring(0, apiUrl.Length - 1); } Uri r = new Uri(renderApiUrl); renderApiUrl = r.ToString(); if (renderApiUrl.EndsWith("/")) { renderApiUrl = renderApiUrl.Substring(0, renderApiUrl.Length - 1); } ApiUrl = apiUrl; RenderApiUrl = renderApiUrl; if (!String.IsNullOrEmpty(privateToken)) { PrivateToken = privateToken; } if (!String.IsNullOrEmpty(siteCode)) { SiteCode = siteCode; } Client = new ApiClient(); FolderService = new CmService(this); AuthService = new AuthService(this); }
public void SendToRender() { CmService cm = new CmService(apiContext); // ResponseMessage r = cm.SendToRender(userToken, "6a350b570ecf40549016b3c434eb0c18", "global_sobey_defaultclass / MaterialList", "32"); //Assert.IsTrue(r.Code == "0"); }