queue.php

From: Dylan Douglas <dylan_at_mediadefender.com>
Date: Mon, 2 Apr 2007 14:55:36 -0700
XML -> JSON
Z-
 
Updated the queue.php script with the metainfo that you wanted.  Here's how it works now:
 
Given:
account
callback (optional)
count (optional, defaults to 100)
 
Returns:
sexytime(
  { "queue": [
    { "hash": "00b42c66910fee1fad4f55c1c888251160ff7050", "position": "14", "title": "UNKNOWN", "size": "-1",  "codec": "UNKNOWN", "length": "-1", "views": "-1", "tags": [ ] },
    { "hash": "a89a558e81a96cbf3e728534d1350c71020b2244", "position": "15", "title": "UNKNOWN", "size": "-1",  "codec": "UNKNOWN", "length": "-1", "views": "-1", "tags": [ ] },
    { "hash": "1954523edb7961e8c2b828da6d7f66650e4ca114", "position": "16", "title": "UNKNOWN", "size": "-1",  "codec": "UNKNOWN", "length": "-1", "views": "-1", "tags": [ ] } ]
  }
)
Okay, yeah, all the metainfo is junk right now, but it will have something at some point.  These are going to be the default values.
 
Also, if you leave the callback out, you'll get the same time, but without the "sexytime(" at the front and ")" at the end.
 
-D
 
----------
Dylan Douglas
MediaDefender
 
Received on Fri Sep 14 2007 - 10:55:57 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:46 BST