Bitcoin Forum
September 24, 2025, 07:54:28 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Gambling / Re: Primedice Python Bot on: October 27, 2016, 05:35:08 AM
~
I'd definitely want to check out the code if you plan on adding it to Github. Not thinking of any specific features at the moment, as I'm currently playing dice on another site.
But I'm thinking of adjusting the code to add support for multiple dice websites, I'm quite busy atm though so if it's just on Github, I can work on it whenever, or create a fork in due time Smiley

If you don't understand any of the code from the aactual github code released by primedice, just ask me!

I also have a gambling strategy that I have been using on primedice taht I could add to my code.

I use the api key into below link it works fine it provide all info
https://api.primedice.com/api/users/1?api_key=<API KEY>

my python code getting info work fine

import urllib, json
url = "https://api.primedice.com/api/users/1?api_key=<API KEY>"
response = urllib.urlopen(url)
data = json.loads(response.read())
print data

primedice api make a bet commend
Make a bet
POST /bet
Expects amount, target (the 0-99.99 number), and condition (an "<" or ">"). Requires authentication.
https://api.primedice.com/api/bet?api_key=<API KEY>&amount=0.00010000&target=50&condition=<
above link not working , then how i make a bet by used with api key

my python code


import requests
post_data = {'api_key':'<API KEY>', 'amount':'0.00001000', 'target':'50', 'condition':'<'}
post_response = requests.post(url='https://api.primedice.com/api/bet?', data=post_data)
print post_response

output
<Response [401]> or Unotherized what, wrong in the code

don't commend some working code please
2  Economy / Gambling / how primedice api used to program on: October 24, 2016, 07:26:12 AM
I use the api key into below link it works fine it provide all info

https://api.primedice.com/api/users/1?api_key=<API KEY>

but how to make a bet

Make a bet
POST /bet
Expects amount, target (the 0-99.99 number), and condition (an "<" or ">"). Requires authentication.

https://api.primedice.com/api/bet?api_key=<API KEY>&amount=0.00010000&target=50&condition=<

above link not working , then how i make a bet by used with api key

my python code

import requests
post_data = {'api_key':'api-key', 'amount':'0.00001000', 'target':'50', 'condition':'<'}
post_response = requests.post(url='https://api.primedice.com/api/bet?', data=post_data)
print post_response

code result <Response [401]> or Unotherized

what, wrong in the code





Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!