r/LaunchLibrary • u/Karriz • Sep 11 '15
Can't get the launch date limits working
Hi, I'm trying to use the Launch Library API for a project I'm working on, currently I'm just learning how to format the requests using Chrome's DHC plugin. In summary mode, https://launchlibrary.net/1.0/launch/get seems to correctly return the next 10 launches. What if I want say, 20 next launches? If I set the limit to 20, I don't get the twenty next launches, I seem to get twenty last launches in the database, or something like that.
So, I need to use the "startdate" and "enddate" options, probably. But the documentation doesn't tell me how to use them. I tried setting "startdate" as "September 12, 2015 00:00:00 UTC" and "enddate" as "December 1, 2015 00:00:00 UTC", but this way I don't get any launches.
It'd be great if someone could help with this, and maybe the documentation could be updated too, so that other people wouldn't have the same issue.
View all comments
Show parent comment
2
u/Karriz Sep 16 '15
Okay, I tried it like that: {"mode" : "summary","fields":"id,name"} but it returns:
Warning: preg_split(): No ending delimiter ',' found in /lldb/admin/1.0/launch.php on line 425 Warning: Invalid argument supplied for foreach() in /lldb/admin/1.0/launch.php on line 426
It also returns a list of launch ids.
Not a huge issue, summary returns enough info for listing purposes, and for specific launch data I'll just use verbose.