AsposeBarCodeCloud-BarcodeApi

 view release on metacpan or  search on metacpan

lib/AsposeBarCodeCloud/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/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::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;
    
}
#
# PostGenerateMultiple
#
# Generate multiple barcodes and return in response stream
# 
# @param String $format Format to return stream in (optional)
# @param BarcodeBuildersList $body  (required)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::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;
    
}
#
# PostBarcodeRecognizeFromUrlorContent
#
# Recognize barcode from an url.
# 
# @param String $type Barcode type. (optional)
# @param String $checksumValidation Checksum validation parameter. (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BarcodeResponseList', $response->header('content-type'));
    return $_response_object;
    
}
#
# PostBarcodeRecognizeFromRequestBody
#
# Recognize barcode from request body.
# 
# @param String $type Barcode type (required). 
# @param String $checksumValidation Checksum validation parameter. (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BarcodeResponseList', $response->header('content-type'));
    return $_response_object;
    
}
#
# PutBarcodeGenerateFile
#
# Generate barcode and save on server.
# 
# @param String $name The image name. (required)
# @param String $text Barcode's text. (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::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;
    
}
#
# PutGenerateMultiple
#
# Generate image with multiple barcodes and put new file on server
# 
# @param String $name New filename (required)
# @param String $format Format of file (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::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;
    
}
#
# GetBarcodeRecognize
#
# Recognize barcode from a file on server.
# 
# @param String $name The image name. (required)
# @param String $type The barcode type. (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

	if($AsposeBarCodeCloud::Configuration::debug){
		print "\nResponse Content: ".$response->content;
	}    
	
	my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BarcodeResponseList', $response->header('content-type'));
    return $_response_object;
    
}
#
# PutBarcodeRecognizeFromBody
#
# Recognition of a barcode from file on server with parameters in body.
# 
# @param String $name The image name. (required)
# @param String $type The barcode type. (optional)

lib/AsposeBarCodeCloud/BarcodeApi.pm  view on Meta::CPAN

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

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


1;



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