API Help

Got a program that plays well with SABnzbd? Share it here!
Post Reply
Duffleman
Newbie
Newbie
Posts: 3
Joined: August 4th, 2010, 3:34 pm

API Help

Post 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
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: API Help

Post 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.
Post Reply