REST API v4: GET subprofile identifiers
A simple method for fetching the identifiers of all subprofiles in a miniselection. Execute this method by sending an HTTP GET request to the following URL:
https://api.copernica.com/v4/miniview/$id/subprofileids
The $id
should be replaced by the numerical identifier of the miniselection
you want to fetch the IDs of.
Available parameters
This method does not support any parameters.
Returned fields
This method returns a JSON array consisting of unique numerical identifiers.
PHP example
The following PHP script demonstrates how to use the API method.
// required modules
require_once('CopernicaRestAPI.php');
// change this to your access token
$api = new CopernicaRestAPI("your-access-token", 4);
// execute the call and print the result
print_r($api->get("miniview/{$miniviewID}/subprofileids"));
The example above requires the CopernicaRestApi class.