Skip to content

Content type "blog post" #12

@mzeis

Description

@mzeis

Hi, first: thank you a lot for providing this package!

I was wondering if you would accept a PR for adding the ability to create blog posts?

From a quick test, I could post a blog to Confluence Cloud by creating a class \CloudPlayDev\ConfluenceClient\Entity\ContentBlogPost which extends \CloudPlayDev\ConfluenceClient\Entity\AbstractContent defining a $type "blogpost" and extending the existing code which works with ContentPage and ContentComment classes so that is also can handle blog posts.

Example usage code:

$confluenceClient = new ConfluenceClient($confluenceHost);
$confluenceClient->authenticateBasicAuth($confluenceUser, $confluenceToken);

$post = new ContentBlogPost();
$post->setSpace($space);
$post->setTitle($title);
$post->setContent($content);

$result = $confluenceClient->content()->create($post);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions