test page

“https://api.coinranking.com/v2/markets”, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => “”, CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => “GET”, CURLOPT_HTTPHEADER => array( “x-access-token: coinranking60226e36de01cd099d7abc4bb4fca6e2ac6a07e40ebe0139” ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
				
					
<?php
  $curl = curl_init();

  curl_setopt_array($curl, array(
    CURLOPT_URL => "https://api.coinranking.com/v2/markets",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => array(
      "x-access-token: coinranking60226e36de01cd099d7abc4bb4fca6e2ac6a07e40ebe0139"
    ),
  ));

  $response = curl_exec($curl);

  curl_close($curl);
  echo $response;
				
			
const connection = new WebSocket('coinranking60226e36de01cd099d7abc4bb4fca6e2ac6a07e40ebe0139'); connection.onmessage = (event) => { const rate = JSON.parse(event.data); console.log(rate); };
const connection = new WebSocket('coinranking60226e36de01cd099d7abc4bb4fca6e2ac6a07e40ebe0139'); connection.onmessage = (event) => { const rate = JSON.parse(event.data); console.log(rate); };
				
					<?php
  $curl = curl_init();

  curl_setopt_array($curl, array(
    CURLOPT_URL => "https://api.coinranking.com/v2/markets",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => array(
      "x-access-token: coinranking60226e36de01cd099d7abc4bb4fca6e2ac6a07e40ebe0139"
    ),
  ));

  $response = curl_exec($curl);

  curl_close($curl);
  echo $response;
  ?>