matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
Mat Bowles ([personal profile] matgb) wrote in [site community profile] dw_dev2011-01-13 04:03 pm
Entry tags:

Delicious Glue client updating [solved]

OK, I'm working on an update and port of the Delicious Glue script originally done for LJ. It works as a Client, ergo I'm asking here.

I've got most of what I want to acheive working, including, finally, Icons (the keyword is case sensitive, obvious when you think about it). However, I haven't managed to get post security working--this isn't an issue for me, and therefore lower priority, but I'd imagine some would like it, and would like to include it. I've read through the Wiki entries on both XML-RPC Protocol and XML-RPC Protocol Method: postevent, and worked through what I think the code should be, but it isn't working. My current code is here:
http://notzen.com/mat/delicious-glue.txt (and there's awrite up with the full script to DL here)

I've commented out the security stuff to get the rest working, but this is my first time, ever, messing around with client protocols, and I've had a few requests for copies of the script. What am I doing wrong? Thanks to [profile] andreducker linking to the original post, I have discovered my problem. Missing semi colons.
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-01-13 09:20 pm (UTC)(link)
There is another option, actually, which most PHP configurations support out-of-the-box: Rename your file to use a .phps extension instead of a .txt extension. Then you get a pretty colour-coded output that's otherwise exactly mostly the same as the .txt version. :) (It looks like it changes the indents, though.)
Edited 2011-01-13 21:22 (UTC)
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 09:49 pm (UTC)(link)
That's pretty awesome.