Jump to content
source

API POST /bet

Recommended Posts

 

I ask for an example of the API POST /bet

amount - how? 

target (0 - 99.99),

condition ("<" or ">")

at 0.00000001 the balance does not change

my answer:{"bet":{"id":XXXXX,"player":"XXXX","player_id":"XXXX","amount":0,"target":49.5,"profit":0,"win":true,"condition":"<","roll":12.37,"seed_id":"31241","nonce":"5676","client":........

 

 

where I was mistaken?

 

 

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.primedice.com/api/bet?api_key=XXXXXXXXXXX');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "amount=0,00000001&target=49.50&condition=<");
$out = curl_exec($ch);
curl_close($ch);

I get the data, but the balance does not change

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×