UserService.GetClient Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

GetClient(string, bool, bool) Get user by clientId.
GetClient(string, string) Gets the User with the specified username/email and password.

GetClient(string, bool, bool)

Get user by clientId.

public static User GetClient(string id, bool sudo = false, bool trashed = false)

Parameters

id
string

The client id of the user.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return client even if trashed, otherwise false.

Returns

GetClient(string, string)

Gets the User with the specified username/email and password.

public static User GetClient(string id, string secret)

Parameters

id
string

The client id of the user.

secret
string

The password for the User. This is case sensitive.

Returns

User

Returns an instance of the User class.