zkb api request error

Please report bugs here, please be very detailed in your bug reports. If you've come up with some code to fix the bug, please post it here.
Post Reply
User avatar
Elaugaste Dourden
Noob
Posts: 3
Joined: Mon Dec 12, 2016 18:01

zkb api request error

Post by Elaugaste Dourden » Mon Dec 12, 2016 18:28

Hello

Zkillboard change api or make bug.
EDK for fetch using request and get HTTP 400 error:
https://zkillboard.com/api/combined/all ... ection/asc

But if use request without time (only date) - request return http 200 and contain valid data:
https://zkillboard.com/api/combined/all ... ection/asc

I very bad php programmer :oops: ... but i do tempraly fix:
In file common/includes/class.zkbfetch.php needed change string #332 on this code:

Code: Select all

        //$timestampFormattedForZkb = strftime("%Y%m%d%H%M", $this->lastKillTimestamp); //Original string
	$timestampFormattedForZkb = strftime("%Y%m%d", $this->lastKillTimestamp); //Temporaly fix
Done file in attach.

PS
Sorry my bad english.
If i help you, you can help me with ISK =)
In my ingame wallet blackhole =(
Attachments
class.zkbfetch.php.zip
(9.18 KiB) Downloaded 140 times

User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: zkb api request error

Post by prometh » Mon Dec 12, 2016 21:50

This patch will work but you will evebtually miss kills if you jzst have enough within 24 hours. Its enough to set the minutes of the timestamp to 00:

Code: Select all

$timestampFormattedForZkb = strftime("%Y%m%d℅H00", $this->lastKillTimestamp);

Post Reply

Return to “Bug Reporting”

Who is online

Users browsing this forum: No registered users and 8 guests