Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Get value on object through API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get value on object through API

Accepted answer
5
Views
7
Comments
edited Jun 8, 2022 12:11PM in General Technical Discussions 7 comments

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);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!