<?php

$postArray = [
        'agent_code' => 'bobo77', 
        'agent_token' => '4fc44039b340e15ed0d348cccc452075'
    ];
    $jsonData = json_encode($postArray);

    $headerArray = ['Content-Type: application/json'];
    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://a...content-available-to-author-only...t.com/api/v2/info');
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArray);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

    $res=curl_exec($ch);
    curl_close($ch);