tesses-cms/Tesses.CMS.Cli/Program.cs

18 lines
458 B
C#
Raw Normal View History

2023-12-16 01:40:05 +00:00
using Tesses.CMS.Client;
TessesCMSClient client = new TessesCMSClient("http://192.168.0.155:62444/");
await foreach(var item in client.Movies.GetMoviesAsync("Blender"))
{
Console.WriteLine(item.ProperName);
}
bool success=await client.Users.LoginAsync("johndoe@example.com","Se7enMovie");
if(success)
{
Console.WriteLine("Logged in successfully");
}
//await client.Movies.CreateAsync("HolyLoop","Holy Loop");
await client.Users.LogoutAsync();