PostsApi class
Methods
createPosts (String companyId , PostsInput postsInput , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <CreatePosts200Response ? >
POST /companies/{company_id}/posts
createPosts2 (String companyId , String postId , String integrationId , PostsInput postsInput )
→ Future <CreatePosts200Response ? >
Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id
createPosts2WithHttpInfo (String companyId , String postId , String integrationId , PostsInput postsInput )
→ Future <Response >
Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id
createPostsPublish (String companyId , String postId , PostsInput postsInput )
→ Future <CreatePosts200Response ? >
Publish a post (make it publicly visible).
createPostsPublishWithHttpInfo (String companyId , String postId , PostsInput postsInput )
→ Future <Response >
Publish a post (make it publicly visible).
createPostsUnpublish (String companyId , String postId , PostsInput postsInput )
→ Future <CreatePosts200Response ? >
Unpublish a post (make it private/draft again).
createPostsUnpublishWithHttpInfo (String companyId , String postId , PostsInput postsInput )
→ Future <Response >
Unpublish a post (make it private/draft again).
createPostsView (String companyId , String postId , PostsInput postsInput )
→ Future <CreatePosts200Response ? >
Increment view count for a post. Public endpoint (no authentication required).
createPostsViewWithHttpInfo (String companyId , String postId , PostsInput postsInput )
→ Future <Response >
Increment view count for a post. Public endpoint (no authentication required).
createPostsWithHttpInfo (String companyId , PostsInput postsInput , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <Response >
POST /companies/{company_id}/posts
deletePosts (String companyId , String postId )
→ Future <DeletePosts200Response ? >
Delete single post by ID.
deletePostsWithHttpInfo (String companyId , String postId )
→ Future <Response >
Delete single post by ID.
getPostsById (String companyId , String postId )
→ Future <GetPostsById200Response ? >
Get single post by ID.
getPostsByIdPublications (String companyId , String postId )
→ Future <GetPostsById200Response ? >
Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status
getPostsByIdPublicationsWithHttpInfo (String companyId , String postId )
→ Future <Response >
Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status
getPostsByIdWithHttpInfo (String companyId , String postId )
→ Future <Response >
Get single post by ID.
listPosts (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <ListPosts200Response ? >
Get a list of all posts for the user's company. Supports filtering, sorting, pagination.
listPostsSummary (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <ListPosts200Response ? >
GET /companies/{company_id}/posts/summary
listPostsSummaryWithHttpInfo (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <Response >
GET /companies/{company_id}/posts/summary
listPostsWithHttpInfo (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <Response >
Get a list of all posts for the user's company. Supports filtering, sorting, pagination.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
updatePosts (String companyId , String postId , PostsUpdate postsUpdate )
→ Future <UpdatePosts200Response ? >
Update an existing post by ID. Note: last_edited_at is automatically updated.
updatePostsWithHttpInfo (String companyId , String postId , PostsUpdate postsUpdate )
→ Future <Response >
Update an existing post by ID. Note: last_edited_at is automatically updated.