Weird API behavior

AdaAda
edited April 2013 in Tech Support
Hi! I've been trying to use IRE's open API ( http://www.ironrealms.com/IREAPIdocumentation.pdf ) to collect orglogs. But I've been having some weird issues accessing the api server.

1. The server returns an Http 403 (Forbidden) when there are no logs for an org for a given day, I can handle that but shouldn't that return an empty JSON object?
2. The 'count' items in the /orglogs.json endpoint never change when I give day=x parameter, they always reflect the state for day 0. Here are sample uris I'm using,

http://api.achaea.com/orglogs.json?password=secret&character=Ada&day=0
http://api.achaea.com/orglogs.json?password=secret&character=Ada&day=1
http://api.achaea.com/orglogs.json?password=secret&character=Ada&day=2

The count is always the same O_o
My script is hosted here:

https://bitbucket.org/adayoung/adacode/src/master/irelogs.py

Anyone know what might be causing the weird behavior? Thanks in advance!

Comments

Sign In or Register to comment.