fork download
  1. <?php
  2.  
  3. $postArray = [
  4. 'agent_code' => 'bobo77',
  5. 'agent_token' => '4fc44039b340e15ed0d348cccc452075'
  6. ];
  7. $jsonData = json_encode($postArray);
  8.  
  9. $headerArray = ['Content-Type: application/json'];
  10.  
  11. $ch = curl_init();
  12. curl_setopt($ch, CURLOPT_URL, 'https://a...content-available-to-author-only...t.com/api/v2/info');
  13. curl_setopt($ch, CURLOPT_POST, 1);
  14. curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
  15. curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArray);
  16. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  17.  
  18. $res=curl_exec($ch);
  19. curl_close($ch);
Success #stdin #stdout 0.04s 26208KB
stdin
Standard input is empty
stdout
Standard output is empty