Yes that covers the single response, but when you ask for app data
from a set of users, as per the JSon unit tests in
RestfulJsonDataTest they are all keyed by the userId, even for single
response. The format appears to be defined for the single response
(as you mention), but not for a set of responses. Logically mapping
from the JSON in the same way generates the xml in my original
message, but I have no idea if that was intended.
Presumably the PHP code doesnt deal with collections of app data ?
Ian
On 3 Nov 2008, at 12:15, Chris Chabot wrote:
i've been going of the rest spec document for the format of the
structure
while implementing this in php-shindig:
<appdata xmlns="http://ns.opensocial.org/2008/opensocial">
<entry>
<key>pokes</key>
<value>3</value>
</entry>
<entry>
<key>last_poke</key>
<value>2008-02-13T18:30:02Z</value>
</entry>
</appdata>
On Mon, Nov 3, 2008 at 11:38 AM, Ian Boston <[EMAIL PROTECTED]> wrote:
I am reading the spec at http://www.opensocial.org/Technical-
Resources/opensocial-spec-v081/restful-protocol
section 2.5
"
application/json representation:
(maps directly to the xml format)
{
"entry" : {
"example.org:34KJDCSKJN2HHF0DW20394" : {"pokes" : 3, "last_poke" :
"2008-02-13T18:30:02Z" },
"example.org:58UIDCSIOP233FDKK3HD44" : {"pokes" : 2, "last_poke" :
"2007-12-16T18:30:02Z" }
}
}
"
What is the xml ? Its not clear to me and I think the XSD is
wrong, so no
help.
is it ?
<entry>
<key>example.org:34KJDCSKJN2HHF0DW20394</key>
<value>
<entry>
<key>pokes</key>
<value>3</value>
</entry>
<entry>
<key>last_poke</key>
<value>2008-02-13T18:30:02Z</value>
</entry>
</value>
</entry>
<entry>
<key>example.org:58UIDCSIOP233FDKK3HD44</key>
<value>
<entry>
<key>pokes</key>
<value>2</value>
</entry>
<entry>
<key>last_poke</key>
<value>2007-12-16T18:30:02Z</value>
</entry>
</value>
</entry>