PostsController Class

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

A Post is the central object you see in the stream. It has rich text and annotations. It can be liked, starred, commented etc. Posts are closely tied to the follow graph, if you would like to send private messages you should look at the Messages API.

public class PostsController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerPostsController

Constructors

PostsController()

Methods

Delete(int) Delete the post with the specified id.
Follow(int) Follow a post.
Get(int) Get the post with the specified id.
GetPosts(int, Query) Retrieves the stream of posts in an app.
Insert(int, PostIn) Creates a new post in the specified app.
Like(int) Mark a post as liked by the current user.
Pin(int) Pin a post.
Restore(int) Restores a post from the trash.
Star(int) Mark a post as starred by the current user.
Trash(int) Trash a post.
Unfollow(int) Unfollow a post.
Unlike(int) Mark a post as unliked by the current user.
Unpin(int) Unpin a post.
Unstar(int) Mark a post as unstarred by the current user.
Update(int, PostUp) Updates a post.
Vote(int, int) Vote for an option in a poll.

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, Formatting?, 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.