/// <summary> /// Get All available Media Players from Ooyala by using V2 API /// </summary> /// <param name="SecretKey">Backlot Secret Key</param> /// <param name="APIKey">Backlot API Key</param> /// <returns>List of Media Players</returns> public static List <OoyalaData.Players.Item> GetAllPlayers(string SecretKey, string APIKey) { var list = new List <OoyalaData.Players.Item>(); OoyalaData.Players.OoyalaPlayerDataResult odr = new OoyalaData.Players.OoyalaPlayerDataResult(); string json = OoyalaAPI.getJSON(SecretKey, APIKey, pathPlayer, null); odr = JsonHelper.JsonDeserialize <OoyalaData.Players.OoyalaPlayerDataResult>(json); list.AddRange(odr.items); return(list); }
/// <summary> /// Get All available Media Players from Ooyala by using V2 API /// </summary> /// <param name="SecretKey">Backlot Secret Key</param> /// <param name="APIKey">Backlot API Key</param> /// <returns>List of Media Players</returns> public static List<OoyalaData.Players.Item> GetAllPlayers(string SecretKey, string APIKey) { var list = new List<OoyalaData.Players.Item>(); OoyalaData.Players.OoyalaPlayerDataResult odr = new OoyalaData.Players.OoyalaPlayerDataResult(); string json = OoyalaAPI.getJSON(SecretKey, APIKey, pathPlayer, null); odr = JsonHelper.JsonDeserialize<OoyalaData.Players.OoyalaPlayerDataResult>(json); list.AddRange(odr.items); return list; }