How to set boolean value true in php curl
P粉344355715
P粉344355715 2024-03-30 21:25:31
0
1
494

How to set fixed_rate boolean true

in this php curl

fixed_rate (optional) - Boolean value, can be true or false. Returns available currencies and minimum and maximum exchange amounts.

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.nowpayments.io/v1/currencies',
  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-api-key: <your_api_key>'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

P粉344355715
P粉344355715

reply all(1)
P粉493534105
CURLOPT_URL => 'https://api.nowpayments.io/v1/currencies?fixed_rate=true',

You should set the flat rate as a parameter of url.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template