Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 986 Bytes

rest-get-profile-fields.md

File metadata and controls

38 lines (24 loc) · 986 Bytes

REST API: GET profile fields

Warning: You are viewing the documentation for the old REST API. We recommend using version 2 of the REST API.

To request the fields from a profile you can send an HTTP GET request to the following URL:

https://api.copernica.com/v1/profile/$id/fields?access_token=xxxx

The $id should be replaced with the numerical identifier of the profile you're requesting the fields of.

Returned fields

This method returns the fields of a profile.

PHP Example

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

// dependencies
require_once('copernica_rest_api.php');
    
// change this into your access token
$api = new CopernicaRestApi("your-access-token");

// do the call, and print result
print_r($api->get("profile/1234/fields"));

The example above requires the CopernicaRestApi class.

More information