package WWW::MediaTemple;
use Carp qw(croak);
use JSON;
use XML::Simple;
use base qw(REST::Client);
our $VERSION = 0.02;
sub new {
my ( $class, %args ) = @_;
if ( !$args{api_key} ) { croa
api/v1',
pretty_print => 'true',
wrap_root => 'true',
format => 'json',
raw_data => '',
key => ''
);
# we prefer the following ve
}
sub addService {
my ( $self, %args ) = @_;
my $b_content = undef;
# prepare xml/json
if ( $self->{format} eq 'xml' ) {
$b_content = "<service><serviceType>$args{serviceTy