REST API: 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:$id/subprofileids?access_token=xxxx

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

// change this to your access token
$api = new CopernicaRestAPI("your-access-token", 3);

// execute the call and print the result

The example above requires the CopernicaRestApi class.

More information