Exportar JSON a archivo DOCX en la nube

Excel y exportación de hojas de cálculo de OpenOffice con Cloud SDK de código abierto para PHP

Exoprt de archivo JSON a DOCX en Cloud SDK para PHP

  1. Crea una cuenta enPanel para obtener gratis API cuota y detalles de autorización
  2. Inicialice CellsApi con ID de cliente, secreto de cliente, URL base y versión API
  3. Llame al método cellsWorkbookPutConvertWorkBook para obtener la secuencia DOCX resultante

Comience con Excel DESCANSO API

Obtenga el código fuente Excel Cloud SDK for .NET deGitHub para compilar el SDK usted mismo o diríjase alLanzamientos para opciones de descarga alternativas.

También eche un vistazo a Basado en SwaggerAPI Referencia para saber más sobre elExcel DESCANSO API.

PHP Código para conversión de JSON a DOCX

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/
    <?php
    require_once('vendor\autoload.php');
    use \Aspose\Cells\Cloud\Api\CellsApi;
    $instance = new CellsApi(getenv("ProductClientId"),getenv("ProductClientSecret"));
    $path ='Book1.xlsx';    
    $format ='docx';
    $password = null;
    $outPath = null;      
    $result = $this->instance->cellsWorkbookPutConvertWorkBook($path ,$format, $password,  $outPath);
    $size = $result->getSize();
    $content  = $result->fread($size);
    $file = fopen("destfile.docx", 'w');
    fwrite($file,$content);
    fclose($file);

FAQ

  • How can I get started with Aspose. REST APIs?
    Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
  • Where can I see the release notes for Aspose. Cloud API?
    Complete release notes can be reviewed at Aspose. Cloud Documentation.
  • Is it safe to convert to in the Cloud?
    Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
  • What file formats are supported by Aspose. Cloud API?
    Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
  • I do not have time to set up. Is there a quick demo for to that I can try?
    Indeed! Checkout the to Conversion App.

Other Options

What is File Format?

What is File Format?