Bric::SOAP::Story

NAME

Bric::SOAP::Story - SOAP interface to Bricolage stories.

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

use SOAP::Lite;
import SOAP::Data 'name';

# setup soap object to login with
my $soap = new SOAP::Lite
  uri      => 'http://bricolage.sourceforge.net/Bric/SOAP/Auth',
  readable => DEBUG;
$soap->proxy('http://localhost/soap',
             cookie_jar => HTTP::Cookies->new(ignore_discard => 1));
# login
$soap->login(name(username => USER),
             name(password => PASSWORD));

# set uri for Story module
$soap->uri('http://bricolage.sourceforge.net/Bric/SOAP/Story');

# get a list of story_ids for published stories w/ "foo" in their title
my $story_ids = $soap->list_ids(name(title          => '%foo%'),
                                name(publish_status => 1)     )->result;

# export a story
my $xml = $soap->export(name(story_id => $story_id)->result;

# create a new story from an xml document
my $story_ids = $soap->create(name(document => $xml_document)
                              ->type('base64'))->result;

# update an existing story from an xml document
my $story_ids = $soap->update(name(document => $xml_document)->type('base64'),
                              name(update_ids =>
                                   [ name(story_id => 1024) ]))->result;

DESCRIPTION

This module provides a SOAP interface to manipulating Bricolage stories.

INTERFACE

Public Class Methods

Private Class Methods

AUTHOR

Sam Tregar

SEE ALSO

Bric::SOAP