PrePAN

Sign in to PrePAN

Confluence::REST Thin wrapper around Confluence's REST API

Good

Synopsis

```
    my $base_url = 'https://wiki.appnexus.com';
    my $confluence = Confluence::REST->new($base_url);
    my $cql        = qq[type = page AND space = '$space' AND title = '$title'];

    $confluence->set_search_iterator({
                                      cql    => $cql,
                                      expand => 'body.storage',
                                     });

    if (my $item = $confluence->next_result) {
      state $count = 0;
      my $content_body = $item->{body}->{storage}->{value};
      say $content_body;
    }
```

Description

A very thin wrapper around the Confluence REST API. Lets you pass in CQL (Confluence Query Language).

This code is basically JIRA::REST with some tweaks to get it to work with the Confluence REST API.

I'm already using this for some stuff at work, so I can vouch for the basic functionality.

Comments

Please sign up to post a review.