Bitcoin Forum
June 30, 2024, 12:59:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem with Bitcurrex api [PHP]  (Read 713 times)
SloRunner (OP)
Member
**
Offline Offline

Activity: 88
Merit: 10


View Profile
June 30, 2014, 07:29:40 AM
 #1

I have a problem with private queries on bitcurrex.com

Code till now:
Code:
$url = 'https://pln.bitcurex.com/api/0/getFunds';
$data = array('Rest-Key' => '##################', 'Rest-Sign' => '################', 'nonce' => time() * 1000000);


$options = array(
    'http' => array(
        'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
        'method'  => 'POST',
        'content' => http_build_query($data),
    ),
);
$context  = stream_context_create($options);
$result = file_get_contents($url, false, $context);

var_dump($result);

result:
Code:
{"error":"Must be logged in"}

anyone done this before? or maybe someone have a sample code for it?

Ty for your help Smiley

SloRunner (OP)
Member
**
Offline Offline

Activity: 88
Merit: 10


View Profile
July 13, 2014, 04:16:35 PM
 #2

BTCump

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!