AsposeEmailCloud-EmailApi

 view release on metacpan or  search on metacpan

lib/AsposeEmailCloud/ApiClient.pm  view on Meta::CPAN

    if (@header == 0 || (@header == 1 && $header[0] eq '')) {
        return undef;
    } elsif (grep(/^application\/json$/i, @header)) {
        return 'application/json';
    } else {
        return join(',', @header);
    }
  
}

# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
    my ($self, @header) = @_;
  
    if (@header == 0 || (@header == 1 && $header[0] eq '')) {
        return 'application/json'; # default to application/json
    } elsif (grep(/^application\/json$/i, @header)) {
        return 'application/json';
    } else {

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# AppendMimeMessage
#
# Append mime message
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# CreateFolder
#
# Creates the new folder
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# DeleteFolder
#
# Deletes the folder
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# DeleteMessage
#
# Deletes the mail message
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# FetchMessage
#
# Fetches the message from server
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'MimeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# ListFolders
#
# Gets collection of child folders from parent
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ListFoldersResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# ListMessages
#
# List the messages in the specified folder.
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ListResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# SaveMailAccount
#
# Get mail common info.
# 
# @param String $storage  (required)
# @param String $accountName  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# SaveMailOAuthAccount
#
# Get mail common info.
# 
# @param String $storage  (required)
# @param String $accountName  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# Send
#
# Send mail message from a storage
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# SendMime
#
# Send mail message
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# SetReadFlag
#
# Marks the specifeid message as read.
# 
# @param String $storage  (optional)
# @param String $accountName1  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# GetDocument
#
# Get mail common info.
# 
# @param String $name  (required)
# @param String $storage  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'EmailPropertiesResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# PutCreateNewEmail
#
# Add new email.
# 
# @param String $name  (required)
# @param String $storage  (optional)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'EmailDocumentResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# GetDocumentWithFormat
#
# Convert mail message to target format.
# 
# @param String $name  (required)
# @param String $format  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type'));
    return $_response_object;
    
}
#
# GetEmailAttachment
#
# Get email attachment by name.
# 
# @param String $name  (required)
# @param String $attachName  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type'));
    return $_response_object;
    
}
#
# PostAddEmailAttachment
#
# Add email attachment.
# 
# @param String $name  (required)
# @param String $attachName  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'EmailDocumentResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# GetEmailProperty
#
# Read document property by name.
# 
# @param String $propertyName  (required)
# @param String $name  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'EmailPropertyResponse', $response->header('content-type'));
    return $_response_object;
    
}
#
# PutSetEmailProperty
#
# Set document property.
# 
# @param String $name  (required)
# @param String $propertyName  (required)

lib/AsposeEmailCloud/EmailApi.pm  view on Meta::CPAN

                                           $query_params, $form_params,
                                           $header_params, $_body_data, $auth_settings);
    if (!$response) {
        return;
    }

	if($AsposeEmailCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'EmailPropertyResponse', $response->header('content-type'));
    return $_response_object;
    
}


1;



( run in 1.887 second using v1.01-cache-2.11-cpan-524268b4103 )