Get value on object through API
Summary:
I'm creating an integration script using PHP CURL. When I try to pull the Contact data, there are several fields that contain links because these fields are relations to an object in the Oracle RightNow application.
An example is the country field like the picture below:
How can I get the name of country?
Code Snippet (add any code snippets that support your topic, if applicable):
function getOracleCustomers(){
$header =[
"myHeader"
];
$username = "myUsrname";
$password = "myPasswrd";
$contact_id = 815217;
$ch = curl_init("{mySite}/services/rest/connect/v1.4/contacts/$contact_id");
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);