Group
Extension

Matches 2

Footprintless-Plugin-Atlassian-Confluence ( L/LT/LTHEISEN/Footprintless-Plugin-Atlassian-Confluence-1.03.tar.gz, LTHEISEN, 2017; MetaCPAN )
Footprintless-Plugin-Atlassian-Confluence/lib/Footprintless/Plugin/Atlassian/Confluence/ResponseParser.pm ( view source; MetaCPAN )
 Confluence REST API
# PODNAME: Footprintless::Plugin::Atlassian::Confluence::ResponseParser

use JSON;

sub new {
    return bless( {}, shift )->_init(@_);
}

sub create_content {
    my ( $self, $ht
->is_success() ) {
        $response{success} = 1;
        $response{content} = $content ? decode_json($content) : '';
    }
    else {
        $response{success} = 0;
        $response{content} = $ht
se->code()
       message => 'Success', # $http_response->message()
       content => {} # decode_json($http_response->decoded_content())
   };

=head1 CONSTRUCTORS

=head2 new()

Constructs a new res
Footprintless-Plugin-Atlassian-Confluence ( L/LT/LTHEISEN/Footprintless-Plugin-Atlassian-Confluence-1.03.tar.gz, LTHEISEN, 2017; MetaCPAN )
Footprintless-Plugin-Atlassian-Confluence/lib/Footprintless/Plugin/Atlassian/Confluence/RequestBuilder.pm ( view source; MetaCPAN )
I
# PODNAME: Footprintless::Plugin::Atlassian::Confluence::RequestBuilder

use HTTP::Request;
use JSON;
use Log::Any;

my $logger = Log::Any->get_logger();

sub new {
    return bless( {}, shift )->_i
self->_url( "/rest/api/content", %options ),
        [ 'Content-Type' => 'application/json' ],
        encode_json($content)
    );
}

sub delete_content {
    my ( $self, $id ) = @_;

    return HTTP
->_url( "/rest/api/content/$id", %options ),
        [ 'Content-Type' => 'application/json' ],
        encode_json($content)
    );
}

sub _url {
    my ( $self, $path, %query_params ) = @_;

    my $

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.