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//?access_key= and that doesn't work if I don't have an active session.

Any help would be greatly appreciated.ThanksStuart

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.

Cadair says... #3

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.

yeaGO says... #4

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.

Cadair says... #5

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.

September 14, 2014 3:53 p.m.

This discussion has been closed