$api_key = "keyhere";$api_secret = "secretehere";$base_url = "https://<ip>/api";$api_get_url = "/diagnostics/interface/getInterfaceNames";$url_ints = $base_url.$api_get_url;$get_opts = array('http' => array( 'method' => 'GET', 'header' => 'auth='.$api_key.':'.$api_secret."\r\n" .'Content-Type: application/json' ));$get_context = stream_context_create($get_opts);$get_token = file_get_contents($url_ints, false, $get_context);$token_array = json_decode($get_token, true);print_r ($token_array);