REST API: GET XML logfiles

Copernica keeps logfiles which you can request with the API. This method can be used to download a logfile as XML using its filename. If you don't know the filename please see "More information" for instructions. To execute the method you can send an HTTP GET request to the following URL:$filename/xml?access_token=xxxx

where $filename is the name of the file you want to request.

Returned value

An XML representation of the requested log file. An example is shown below.

        <time>2016-11-04 11:01:00</time>

PHP Example

The following PHP script demonstrates how to use the API method.

// dependencies

// change this into your access token
$api = new CopernicaRestApi("your-access-token");

// do the call, and print result

The example above requires the CopernicaRestApi class.

More information