static void Main(string[] args) { var _client = new StreamableAPI(); string filePath = "c:\\temp\\zyra.mp4"; string userName = "******"; string password = "******"; string urlImport = "https://cdn.streamable.com/video/mp4/mjk3.mp4"; var res1 = _client.GEToEmbed("https://streamable.com/uz0t"); var res21 = _client.Import(urlImport, userName, password); var res22 = _client.Import(urlImport); var res31 = _client.Upload(filePath, userName, password); var res32 = _client.Upload(filePath); var res4 = _client.Retrive("uz0t"); var res5 = _client.RetrieveUser("snmslavk"); var res6 = _client.RetrieveAuthUser(userName, password); }
public void GEToEmbedTest() { webClientMoq.Setup( foo => foo.GetData( It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>() ) ).Returns( File.ReadAllText(dir + ConfigVals.oEmbedPathTest) ); Assert.IsNotNull( client.GEToEmbed(ConfigVals.testVideoUrl) ); Assert.IsInstanceOf <oEmbedModel>( client.GEToEmbed(ConfigVals.testVideoUrl) ); }