Widget zone

Widget zone

GET https://feed.ocmxr.com/v1/widget/{track_id}
Retrieves the details of a Widget zone that has previously been created if a valid identifier was provided

Path parameters

parameters

Query parameters

parameters
curl -X GET \
 "https://feed.ocmxr.com/v1/widget/{track_id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://feed.ocmxr.com/v1/widget/{track_id}';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://feed.ocmxr.com/v1/widget/{track_id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
    <link
      rel="stylesheet"
      href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
      integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
      crossorigin="anonymous"
    />
    <link
      href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
      rel="stylesheet"
    />
    <style>
      body {
        margin: 0;
        padding: 0;
        font-family: "Open Sans", sans-serif;
      }
    </style>
    <style>
      #links-1 {
        width: 100%;
        background-color: #fafafa;
      }
      #links-1 a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        font-size: 18px;
        margin: 3px 0;
        text-decoration: none;
        color: #000;
      }
      #links-1 a i {
        font-size: 22px;
        margin-left: 16px;
      }
      #links-1 .purple {
        color: #c813e5;
      }
      @media screen and (max-width: 530px) {
        #links-1 {
          width: unset;
        }
      }
      @media screen and (max-width: 300px) {
        #links-1 a i {
          display: none;
        }
      }
    </style>
  </head>
  <body>
    <div id="links-1">
      <a href="https://dev-t.ocmant.com/aclk?u=https%3a%2f%2fsearchada.com%2f097d1805-31a7-4b65-8caa-f190737592ce%3fchname%3dmmp_partner%26q%3ddental%2520care%2520plans%26keyword%3dtravel%20flight%20vacation%20rentals%20booking%26sid%3dVRATIO_SAM_SUBID%26domain%3db92.net%26zone_id%3d1010956%26cid%3dYkreiA87BT0AFD7-AA9tDABVNZAAAAAA&l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw3TRRK83FsgfnAJFO1k35dv3meZqN4hKv0A1MqCc1DdgKhtGYi5EV2JVZvLlbUKSH0O-tJGwkNZP4oZ_JeLUOvLHuGfUIiZ6R7N0EaJ5cjdNPAcO8o0YUd7Wm4LV6ZVh-6BCohBQdK4W3zA-Wm-iae4" target="_blank"
        ><span>Best Dental Implants in 2021</span><i class="far fa-play-circle purple"></i
      ></a>
    </div>
    <img
      src="https://dev-t.ocmant.com/imp?l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw3TRRK83FsgfnAJFO1k35dv3meZqN4hKv0A1MqCc1DdgKhtGYi5EV2JVZvLlbUKSH0O-tJGwkNZP4oZ_JeLUOvLHuGfUIiZ6R7N0EaJ5cjdNPAcO8o0YUd7Wm4LV6ZVh-6BCohBQdK4W3zA-Wm-iae4"
      style="display: none"
      border="0"
      width="0"
      height="0"
    />
    <div id="links-1">
      <a href="https://dev-t.ocmant.com/aclk?u=https%3a%2f%2fsearchada.com%2f097d1805-31a7-4b65-8caa-f190737592ce%3fchname%3dmmp_n2s%26q%3donline%2btrading%2bplatform&l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw0oJaEyvQrbizI1cxIXjxXEgMWWa60aMwOM10hPNvObLiJKMHW6-pvzDVcadfRrlh2J4Di8Sb-blcRRSoU8F_gdtJ3LyTE_zSNdj8qDLSDuega_JKcCZs054h6pg_TdGyIqXZcpeBvOsc1LvmLItQ-j" target="_blank"
        ><span>Online Trading Platform</span><i class="far fa-play-circle purple"></i
      ></a>
    </div>
    <img
      src="https://dev-t.ocmant.com/imp?l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw0oJaEyvQrbizI1cxIXjxXEgMWWa60aMwOM10hPNvObLiJKMHW6-pvzDVcadfRrlh2J4Di8Sb-blcRRSoU8F_gdtJ3LyTE_zSNdj8qDLSDuega_JKcCZs054h6pg_TdGyIqXZcpeBvOsc1LvmLItQ-j"
      style="display: none"
      border="0"
      width="0"
      height="0"
    />
    <div id="links-1">
      <a href="https://dev-t.ocmant.com/aclk?u=https%3a%2f%2fsearchada.com%2f097d1805-31a7-4b65-8caa-f190737592ce%3fchname%3dmmp_n2s%26q%3dtravel%2bbest%2bprices&l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw1WjF6rLXqLE5Pw3k9jcCeuoMPCBUBUbtlKf13lDR2wunMz8a48jKO8NAq8SXkDJtiFOrBscRmwB2hhaZf1xLfIzH8cNOra3iW2U9hUnV76A8NZdPmyz0BkeCfyNoS-YOXvuqOJrHiXLJd5hu5UYGkv" target="_blank"
        ><span>travel best prices 2021</span><i class="far fa-play-circle purple"></i
      ></a>
    </div>
    <img
      src="https://dev-t.ocmant.com/imp?l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw1WjF6rLXqLE5Pw3k9jcCeuoMPCBUBUbtlKf13lDR2wunMz8a48jKO8NAq8SXkDJtiFOrBscRmwB2hhaZf1xLfIzH8cNOra3iW2U9hUnV76A8NZdPmyz0BkeCfyNoS-YOXvuqOJrHiXLJd5hu5UYGkv"
      style="display: none"
      border="0"
      width="0"
      height="0"
    />
    <div id="links-1">
      <a href="https://dev-t.ocmant.com/aclk?u=https%3a%2f%2fsearchada.com%2f097d1805-31a7-4b65-8caa-f190737592ce%3fchname%3dmmp_n2s%26q%3dvacation%2brentals&l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw3Z9VI-AbmyQQ4iFtKBK9rjOPjNrT0_Vp5dwg46MSDZMtKy-B6LbxT4GmxsnhezR810Omr3dB5wnji9UZmWktUqY8odsfyVWnmVMyZ7_x-sDO1a1nbxenPBvrVHcuLWP6LR2awHD9qBiIKa9h1CxXH3" target="_blank"
        ><span>Cheap Luxury Vacation Rentals</span><i class="far fa-play-circle purple"></i
      ></a>
    </div>
    <img
      src="https://dev-t.ocmant.com/imp?l2=zy7i6hjcpz1aN7Z7H0MP3-sIL9o1L4-MmGGqoJ0kRw3Z9VI-AbmyQQ4iFtKBK9rjOPjNrT0_Vp5dwg46MSDZMtKy-B6LbxT4GmxsnhezR810Omr3dB5wnji9UZmWktUqY8odsfyVWnmVMyZ7_x-sDO1a1nbxenPBvrVHcuLWP6LR2awHD9qBiIKa9h1CxXH3"
      style="display: none"
      border="0"
      width="0"
      height="0"
    />
    <script>
      function postCurrentHeight() {
        const html = document.documentElement;
        const height = html.offsetHeight;
        window.parent.postMessage("CNRE:" + height, "*");
      }
      postCurrentHeight();
      window.addEventListener("resize", postCurrentHeight);
    </script>
  </body>
</html>
Responses