Author

Topic: Problem with Bitcurrex api [PHP] (Read 711 times)

member
Activity: 88
Merit: 10
July 13, 2014, 12:16:35 PM
#2
BTCump
member
Activity: 88
Merit: 10
June 30, 2014, 03: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
Jump to: