Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Control : Api Change with Backup and 8.1Beta
  •  
Cusmar

Messages: 7
Karma: 0
Send a private message to this user
I have an application that automatically backup all our customer's control.
I use following working Jason request , followed by a get with retrieved ID.

{"jsonrpc":"2.0","id":1,"method":"Configuration.exportId ","params":{"options":{"certificates":true,"dhcpLeases ":true}}}

Works perfectly with versions prior to 8.1

With 8.1 RC2, Firebug give me only one request :

{"jsonrpc":"2.0","id":1,"result":{"fileDownload":{ "url":" \/admin\/api\/jsonrpc\/download\/admin\/3847c9398e\/ControlB ackup_2013_06_20__15_58_40.tar.gz ","name":"ControlBackup_2013_06_20__15_58_40.tar.gz","length ":26295}}}

I have no request before to send parameters ( certicate / dhcp lease)

Do you have any information concerning this issue.
Is this something that gonna be kept with RC version ( i am afraid it will ..)

Regards
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Hi Cusmar,

Kerio Control API is still under development so changes might occur. In this case it happened that Kerio Control now follows the same export mechanism like Kerio Connect or Kerio Operator.

If you are using our kerio-api-php library the code should now look like as follows:
$dir = '/tmp';
$params = array(
    'certificates' => true,
    'dhcpLeases' => true,
    'stats' => true
);
$export = $api->sendRequest('Configuration.exportConfig', $params);

$api->downloadFile(
    $export['fileDownload']['url'],
    $dir,
    $export['fileDownload']['name']
);

Best regards,

Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Yet more comment. Try to check tab Post in Firebug instead of tab Response.

Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
  •  
Cusmar

Messages: 7
Karma: 0
Send a private message to this user
Hi Miroslav,

Thank's for Tab. I was too bad!

I am not using PHP only direct Json Request from our lotus Notes DB.

The request has slightly changed

{"jsonrpc":"2.0","id":1,"method":"Configuration.exportConfig ","params":{"options":{"certificates":true,"dhcpLeases ":true}}}

and in response I should check for fileDownload.

I will change code for version above 8.1

Do you have a document that sum up changes between versions

Thanks

Marc

  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Hi Marc,

I am sorry there is no document describing changes at this moment.

Any way I would like to know a bit more about the integration with Lotus Notes DB.

Please can you share some details how it works? You can PM me or by email mosladil at kerio.com and I will try to find a solution. If we know the area of your integration it will help us prioritize future API development.

Thanks!

Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
  •  
Jabba

Messages: 87
Karma: -1
Send a private message to this user
Previous Topic: Creating Contacts in Public Folders via CardDAV protocol
Next Topic: Kerio Operator Fax API
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Mar 25 14:39:07 CET 2017

Total time taken to generate the page: 0.01068 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.