Lemmy .NET API Lemmy .NET API
Lemmy .NET API Lemmy .NET API

Search Results for

    Improve this Doc

    Method CreatePost

    | Improve this Doc View Source

    CreatePost(CreatePostForm, CancellationToken)

    Creates a new post.

    Declaration
    public Task<PostResponse> CreatePost(CreatePostForm form, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CreatePostForm form

    The form to send for creating a post.

    CancellationToken cancellationToken

    Optional cancellation token to pass through to HttpClient

    Returns
    Type Description
    Task<PostResponse>

    The task object representing the asynchronous operation. The task result contains the response after creating a post.

    Implements
    ILemmyHttpClient.CreatePost(CreatePostForm, CancellationToken)
    © SlyCedix. All rights reserved.