Hi,
The API work?
Sorry my english, my first language is Spanish.
Yes and we have made updates to the
API documentation. Please let us know if you have any problems using it.
Hi,
I have two accounts ...@... and ...@... in both accounts I logged in web interface without problems but the api not work
The response I get is
=============================================================================
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Mon, 02 May 2016 13:50:33 GMT
Server: SatoshiDICE Webserver
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
access-control-allow-origin:
https://www.satoshidice.comAccess-Control-Allow-Credentials: true
Content-Length: 58
Content-Type: application/json
{
"message": "Password is wrong.",
"status": "1"
}
=============================================================================
For more information here I hit the PHP code I'm using
=============================================================================
$url = "https://session.satoshidice.com/userapi/login.php";
$postdata = NULL;
$postdata = array();
$postdata['email'] = $config['satoshi_email'];
$postdata['password'] = $config['satoshi_pass'];
$curl_header = NULL;
$curl_header = array();
$curl_header[] = "User-Agent: SOME TEXT ".$version;
$curl_header[] = "Content-Type: application/x-www-form-urlencoded";
$curl = curl_init();
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl,CURLOPT_HEADER,1);
curl_setopt($curl,CURLOPT_HTTPHEADER,$curl_header);
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_BINARYTRANSFER,true);
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_POSTFIELDS,$postdata);
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($curl,CURLOPT_TIMEOUT,122);
if(isset($config['proxy']) && (strlen($config['proxy'])>0)) curl_setopt($curl,CURLOPT_PROXY,$config['proxy']);
$response = curl_exec($curl);
$response_header_size = curl_getinfo($curl,CURLINFO_HEADER_SIZE);
$header = substr($response,0,$response_header_size);
$body = substr($response,$response_header_size);
curl_close($curl);
=============================================================================
Thank You.