Post
Topic
Board Gambling
Re: scripting primedice --- getting started
by
raitpngman
on 13/06/2016, 23:16:06 UTC
I haven't used primedice in over a year so I don't know if there have been any API changes which may be getting in your way.

What did you try?  How far did you get? What errors did you see?

result=$(curl -X GET https://api.primedice.com/api/mybets?access_token=$token)

I called the api and it returned something. When I look in the variable or send the output to a file, it shows something like "mybets[]" I don't know if this is an empty array or I need to pass another variable to the api in the call or if the information is contained in the variable. I've tried to iterate through the array (but I'm new at scripting, google is a friend) but am unable to get anywhere.