Answer the question
In order to leave comments, you need to log in
json pass data in header. How to do it?
Hello! Please help me figure it out. Such a situation, this is what is written
"Private methods accept a token and a request signature in the headers. The token is passed in the X-API-Token header. The request signature is passed in the X-API-Sign header."
How to actually transfer this token and signature using the post method? Here is my request.
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, 'https://api...');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $open_orders);
$open_orders = curl_exec($curl); //
curl_close($curl);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question