?

Log in

No account? Create an account
What is the XML for 'props' - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

What is the XML for 'props' [May. 14th, 2005|02:29 pm]
LiveJournal Client Discussions
lj_clients
[livewidget]
[mood |confusedconfused]

Hello all,
I am creating my first client and have decided to use the XMLRPC method. I've got tne regular posting sorted but I haven't managed to decipher the expected XML for posting moods. From the documentation I see I need an array, with a struct, some keys and presumably some data, but I don't know quite how that is supposed to be put together in xml. Can some one show me an example of the XML that the server is expect for the 'props' item of postevent.

Cheers
linkReply

Comments:
[User Picture]From: int
2005-05-17 02:03 am (UTC)
The documentation is totally wrong on that one. Took me about a day and a half to figure out. There's no array at all - what you need is another struct containing the props (called props), inside the main struct.
(Reply) (Thread)
From: livewidget
2005-05-17 02:15 am (UTC)
Thanks for helping, butt I still need advice on how to fill out a Struct. It says the data goes in pairs, is it like this?

{struct}
{name}music{/name}
{value}{string}Funky Beats{/string}{value}
{/struct}

If so where do I put the word "props"?
(Reply) (Parent) (Thread)
[User Picture]From: int
2005-05-17 02:44 am (UTC)
<struct>
    <member>
        <name>username</name>
        <value>evildoive</value>
    </member>
...and so on, until you reach props, then its (while still inside the main struct)...
    <member>
        <name>props</name>
        <value>
            <struct>
                <member>
                    <name>current_music</name>
                    <value>some song</value>
                </member>
                <member>
                    <name>picture_keyword</name>
                    <value>booga</value>
                </member>
            </struct>
        </value>
    </member>
</struct>
(Reply) (Parent) (Thread)
[User Picture]From: int
2005-05-17 02:46 am (UTC)
(whoops, and don't forget your <string> tags and everything)
(Reply) (Parent) (Thread)
From: livewidget
2005-05-17 03:01 am (UTC)
Muchos Gracias.


Thanks man, I'll integrate that into my client tonight :-)
(Reply) (Parent) (Thread)