Announcement

Collapse
No announcement yet.

Install and Uninstall extension thru api

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install and Uninstall extension thru api

    Hi,
    Is there a way to install and uninstall extension using api? Without going to Espo CRM Dashboard.

    Please advise,
    paul.tcbc

  • #2
    No such possibility available
    Job Offers and Requests

    Comment


    • #3
      Hi again,

      I think it is possible to install espocrm extension using api. I used the php script below. I'm just getting 500 Internal Server Error. Please advise why this is occuring.

      Thanks,
      paul.tcbc

      <?php

      $curl = curl_init();

      curl_setopt_array($curl, array(
      CURLOPT_URL => "http://localhost/api/v1/Extension/action/upload",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=""; filename="PM-Extension.zip"\r\nContent-Type: application/zip\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
      CURLOPT_HTTPHEADER => array(
      "Authorization: Basic cdafdafdfaddfadfasdfa==",
      "Cache-Control: no-cache",
      "Content-Type: application/zip",
      "Postman-Token: bc300ce0-7498-4198-9abe-4a9f5b4c5906",
      "content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
      ),
      ));

      $response = curl_exec($curl);
      $err = curl_error($curl);

      curl_close($curl);

      if ($err) {
      echo "cURL Error #:" . $err;
      } else {
      echo $response;
      }

      Comment

      Working...
      X