Hi @pedrofi - I coded a quick PHP program using cURL which successfully returns content from Adobe Target activity based on global mbox. Please find the code below.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://<<your-client-code>>.tt.omtrdc.net/rest/v1/delivery?client=<<your-client-code>>&sessionId=aa1f8a7be8234997aa7e5f12ce863d62',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>' {
"context":{
"channel":"web"
},
"id": {
"tntId": "005d07c430b740f1b715e93a595be201.37_0"
},
"experienceCloud" : {
"analytics": {
"logging": "client_side"
}
},
"execute": {
"pageLoad" :
{
"parameters": {
"a": 1,
"b": 2
}
}
}
}
',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Thanks, @Rajneesh_Gautam_
Can I ask you what you mean by "successfully returns content"? Does it mean that you're getting a list of activities?
On my side, using the PHP code you provided, I am still getting the same result as mentioned here: no list of activities and empty value for [execute][pageLoad]