1. Home
  2. Docs
  3. Developer Guide
  4. API Manager
  5. Functions
  6. Packages
  7. del

del

Functionpackages
To make use of the ‘del‘ Action, the following parameters must be sent:

    • key: Key authorized by Api administrator
    • action: del
    • package_name: Package Name
    • id: Package ID

Possible answers:

    • status -> OK
    • status -> Error, msj -> You need some of this data: Package name or ID
    • status => Error, msj -> accounts exist with this associated package

Example of code in php

$data = array(“key” => “MYKEY”,”action”=>’del’, ”package_name”=>’NAME_PACKAGE’, ”id”=>’1’);
$url = “https://IPSERVERAPI:2304/v1/packages”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
Was this article helpful to you? Yes No