View Single Post
  #5   Spotlight this post!  
Unread 14-01-2004, 21:54
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: XML of the FIRST Q & A system

Hey~

Well.. I updated http://usfirst.firstsn.org/xml/qa.php

As of now, it'll run a *ton* faster. The only downside to all of this is that the Q & A's will only be updated from the FIRST site every 15-30 min. SO.. While it won't be totally correct minute-to-minute, it'll be pretty close.

Here are the new values you can pass in the URL.

section=[This works just like the FIRST one. Passing 3 will return everything in and below section 3 such as 3.1, 3.1.1, etc.. Passing 3.1 will return things in 3.1 and below such as 3.1.1 and 3.1.2 BUT NOT 3.2]
date=[asc/desc] - Note: This is just an order by statement. desc will return the newest q&a's first, asc will return the oldest first
status=[answered/unanswered].. yup
start=[offset] - The script will only return a max of 30 records at a time. Start can be used to offset the beginning to start at like record 30 instead of record 0.

SO.. An example would be: http://usfirst.firstsn.org/xml/qa.ph...s=unansw ered

If you have any questions feel free to ask.

Hope this helps everyone!

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**

Last edited by Jack : 15-01-2004 at 12:22. Reason: cron now works