API access with API key
TappedOut forum
Posted on Sept. 14, 2014, 6:06 a.m. by Cadair
Hello,
I am trying to access my deck lists through the tapped out API (http://tappedout.github.io/).
If I use my browser when I have an active session with tapped out everything works as expected (this link works fine and gives me a nice JSON response, http://tappedout.net/api/collection/collection%3Adeck/march-of-the-minotaurs/).I can even make it work through a script if I pull the sessionid out of the cookie and pass it through.
I see in the API docs and in my settings that this is supposed to be able to work using the API key, however, the crucial bit of information I can not find is how to send the API key to the API in lieu of the cookie?
I have tried things like:http://tappedout.net/api/collection/collection:deck/
Any help would be greatly appreciated.ThanksStuart
So is it just not possible at the moment? I was assuming it was just a case of knowing what GET variable to use.
September 14, 2014 12:21 p.m.
The variable is right but the key you're using is bunk. You can always set your script to present your cookie for now just like session browser auth
September 14, 2014 12:37 p.m.
Yeah, my script is passing the sessionid as a cookie, that I copied out from my web browser. I don't suppose I can pass the API key as a cookie? Just thinking from a usability standpoint, having to extract the sessionid cookie is a little tricky.
Anyway, using the cookie works for now, thanks for providing the API at all, and thanks for the advice.
yeaGO says... #2
I've got to do some work as it hadn't been a really well maintained part of the site.
September 14, 2014 12:08 p.m.