NAME
Net::MySourceMatrix - A Perl wrapper to the MySource Matrix(TM)/Squiz Matrix(TM) SOAP API.
VERSION
This documentation refers to version 0.04.
SYNOPSIS
use Net::MySourceMatrix;
my $MyM_Conn = Net::MySourceMatrix->new({
proxy => 'http://matrixdemo.example.com/_web_services/soap-server',
username => 'user',
password => 'pass',
default_ns => 'http://matrixdemo.example.com/_web_services/soap-server'
});
DESCRIPTION
Net::MySourceMatrix provides a Perl wrapper to the MySource Matrix(TM)/Squiz Matrix(TM) SOAP API. It is developed against versions 4.2.3/4.0.7 of Squiz Matrix but also works against version 3.28.9 of MySource Matrix. If a given function doesn't work it may be due to changes between Matrix versions.
METHODS
All methods return an array containing the contents of the tags of the SOAP response. For example, create_asset returns an asset containing the contents of the NewAssetID tags and the CreateMessage tags.
Construction and setup
new
my $MyM_Conn = Net::MySourceMatrix->new({
proxy => 'http://matrixdemo.example.com/_web_services/soap-server',
username => 'user',
password => 'pass',
default_ns => 'http://matrixdemo.example.com/_web_services/soap-server'
});
Construct a new Net::MySourceMatrix object. Takes a required hash reference of config options. The options are:
proxy - The proxy is the server or endpoint to which the client is going to connect. This is from SOAP::Lite.
username - The username of the Matrix User able to connect to the SOAP API.
password - The password of the Matrix User able to connect to the SOAP API.
default_ns - Sets the default namespace for the request to the specified uri. This overrides any previous namespace declaration that may have been set using a previous call to ns() or default_ns(). Setting the default namespace causes elements to be serialized without a namespace prefix. This is from SOAP::Lite.
create_asset
my @result = $MyM_Conn->create_asset((
TypeCode => $type_code,
Name => $name,
ParentID => $parent_id,
LinkType => $link_type,
LinkValue => $link_value,
SortOrder => $sort_order,
IsDependant => $is_dependant,
IsExclusive => $is_exclusive,
FileName => $file_name,
FileContentBase64 => $filecontents)
);
clone_asset
get_all_statuses
get_asset
get_asset_from_url
get_asset_type_attribute
get_asset_type_descendants
get_assets_info
get_attribute_values_by_name
get_asset_available_keywords
get_asset_available_statuses
get_asset_web_paths
get_asset_urls
get_page_contents
set_attribute_value
set_tag
set_asset_status
trash_asset
login_user
get_user_id_by_username
apply_design
remove_design
get_design_from_url
apply_asset_paint_layout
remove_asset_paint_layout
download
upload
get_file_information
get_image_information
create_asset_link
delete_asset_link
get_all_child_links
get_children
get_dependant_children
get_dependant_parents
get_links
get_link_by_asset
get_link_lineages
get_parents
get_parents_under_tree
move_link
update_link
set_metadata_schema
get_metadata_fieldsof_schema
get_metadata_field_values
regenerate_metadata_schema
regenerate_metadata_asset
get_metadata_value_by_i_ds
set_asset_metadata
set_metadata_field_default_value
get_schemas_on_asset
has_access
get_permission
get_role
set_permission
set_role
basic_search
advanced_search
re_index
start_workflow
safe_edit_asset
cancel_workflow
complete_workflow
set_workflow_schema
approve_asset_in_workflow
BUGS
Bugs should be reported via the CPAN bug tracker at
https://rt.cpan.org/Public/Dist/Display.html?Name=Net-MySourceMatrix
ACKNOWLEDGEMENTS
Thanks once again to the inimitable Adam Kennedy, good friend and Perl genius, for his continuing assistance in my experiments in Perl.
AUTHOR
Jeffery Candiloro <jeffery@cpan.org>
COPYRIGHT
Copyright 2011 Jeffery Candiloro.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Squiz Matrix and MySource Matrix are registered trademarks of Squiz Pty Ltd or its subsidiaries in Australia and other countries.