Page 1 of 1

API Help

Posted: August 8th, 2010, 5:38 pm
by Duffleman
Hey there
I'm creating a small view-only interface and using the SABnzbd API.

When loading the Advanced Queue API in JSON, I want only the first result rather than the entire array (using PHP by the way)

Is this possible and if not, any work arounds?

Thanks

Re: API Help

Posted: August 9th, 2010, 4:04 pm
by switch
Add limit=1 to the api query. Be aware that this item could be a paused item in the queue, and not the current active download.