UsersController Class

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

The Users API has methods for manipulating users. Each user has a profile that holds all the personal details of the user. This includes basic information like the name and email address, but can also include other properties like phone number etc.

public class UsersController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerUsersController

Constructors

UsersController()

Methods

Authenticate(String, String) Authenticate user with specified username and password.
AuthenticationStatus() Api to check authentication status for current user.
Follow(Int32) Start following a person.
Get(Int32) Retrieves a user.
GetCommentLikes(Int32, QueryOptions) Retrieve users that liked a comment.
GetCommentStars(Int32, QueryOptions) Retrieve users that starred a comment.
GetContentFollows(Int32, QueryOptions) Retrieve all users that follow the specified content item.
GetContentLikes(Int32, QueryOptions) Retrieve all users that likes the specified content item.
GetContentStars(Int32, QueryOptions) Retrieve all users that stars the specified content item.
GetFollowers(Int32, QueryOptions) Retrieve the people that follow a person.
GetFollowing(Int32, QueryOptions) Returns users that the specified user is following.
GetMe() Retrieves the current user.
GetOnline(QueryOptions) Retrieves a list of online users.
GetPostLikes(Int32, QueryOptions) Retrieve users that liked a post.
GetPostStars(Int32, QueryOptions) Retrieve users that starred a post.
GetPresence(Int32) Retrieves presence information for the specified user.
GetSpaceFollows(Int32, QueryOptions) Retrieve users that follows a space.
GetSpaceLikes(Int32, QueryOptions) Retrieve users that likes a space.
GetSpaceStars(Int32, QueryOptions) Retrieve users that stars a space.
GetUsers(IEnumerable) Retrieves a list of users.
Restore(Int32) Restores a user from the trash.
Search(UserQuery) Searches for users.
Trash(Int32) Trash a user.
Unfollow(Int32) Stop following a person.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.