Page 1 of 1

Exact date/time old API stopped working?

Posted: Mon Jul 09, 2018 8:36 pm
by GamersDatabase
Can you please let me know exactly when the old API stopped working? I need to refresh my mirror back to that point.

Thank you.

Re: Exact date/time old API stopped working?

Posted: Tue Jul 10, 2018 12:34 am
by Leo_Pride
Pinged ZerO to this thread, legacy API endpoint should be available as read-only, but I don't recall what it was renamed at the moment.

Re: Exact date/time old API stopped working?

Posted: Tue Jul 10, 2018 12:42 am
by Zer0xFF
Hi,

while we started redirecting main site to beta about 2 weeks ago, the api remained alive for roughly another week and I think it was the 2nd of this month that the beta took over the main site.

just a note, if you're syncing your database, make sure to sync everything from legacy (api is still active on that domain), before syncing with the new api.

either way, considering how we're redoing how things worked, such as genre, dev, publishers, it'll probably be best to just do a full sync from the beta site, just not yet, once I'm done with those (genre is done, dev is partially done).

Regards
Zer0xFF

Re: Exact date/time old API stopped working?

Posted: Tue Jul 10, 2018 1:13 pm
by GamersDatabase
I didn't realize the old api was still active. Great!

I've switch all my calls to the legacy address and they seem to be working for the most part. However the call to /Updates doesn't appear to be functioning correctly.

Code: Select all

http://legacy.thegamesdb.net/api/Updates.php?time=30240
returns

Code: Select all

<Items>
<Time>1531228079</Time>
</Items>
Any chance this functionality could be restored while the new API changes are finalized?

Re: Exact date/time old API stopped working?

Posted: Tue Jul 10, 2018 2:56 pm
by Zer0xFF
thats how the api works, you've set the time back half a day (old api takes seconds, new takes minutes), but since the legacy is now read only, it hasn't received any updates in a month (since the Database is now separate) this was set to 29 days has return http://legacy.thegamesdb.net/api/Update ... me=2505600

Re: Exact date/time old API stopped working?

Posted: Tue Jul 10, 2018 7:03 pm
by GamersDatabase
doh! you're exactly right. I was reviewing the new API and got t=minutes stuck in my head. Thanks for the help.