REST API: GET profile file content

Profiles can contain folders and subfolders containing files, pertaining to that specific profile. The specific file can be downloaded by sending an HTTP GET request to the following URL:$id/file/$id/content

The first $id should be replaced with the numerical identifier of the profile you're requesting the file information about. The second $id should be the ID of the file.

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", 4);

// do the call, and print result

The example above requires the CopernicaRestApi class.

More information