22 lines
675 B
C#
22 lines
675 B
C#
using Flurl.Http.Content;
|
|
|
|
namespace Piwigo.Client;
|
|
|
|
internal static class PiwigoMethods
|
|
{
|
|
public static CapturedMultipartContent PiwigoLogin(this CapturedMultipartContent part, string username,
|
|
string password)
|
|
{
|
|
return part.AddMethod("pwg.session.login").AddString("username", username).AddString("password", password);
|
|
}
|
|
|
|
public static CapturedMultipartContent PiwigoLogout(this CapturedMultipartContent part)
|
|
{
|
|
return part.AddMethod("pwg.session.logout");
|
|
}
|
|
|
|
public static CapturedMultipartContent PiwigoGetStatus(this CapturedMultipartContent part)
|
|
{
|
|
return part.AddMethod("pwg.session.getStatus");
|
|
}
|
|
} |