S2 Client Protocol
Sep. 15th, 2009 05:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
If this isn't the right place, I'd be happy to be directed elsewhere. I'm looking for any documentation or examples around Dreamwidth's S2 style interface.
I know LJ has a few pages about it in their S2 manual. I can see that http://www.dreamwidth.org/interface/s2/layerid correctly retrives S2 layers, so it's available on Dreamwidth as well.
Are there any existing clients that use this interface for retrieving/uploading layers? Does Dreamwidth's implementation differ from LJ (for example, is it still required to send "application/x-danga-s2-layer" as Content-Type)?
I'd like to be able to use this interface to dynamically change my style layer, so I thought I'd check if any guidelines/best practices/documentation existed before I resorted to the trial-and-error method.
I know LJ has a few pages about it in their S2 manual. I can see that http://www.dreamwidth.org/interface/s2/layerid correctly retrives S2 layers, so it's available on Dreamwidth as well.
Are there any existing clients that use this interface for retrieving/uploading layers? Does Dreamwidth's implementation differ from LJ (for example, is it still required to send "application/x-danga-s2-layer" as Content-Type)?
I'd like to be able to use this interface to dynamically change my style layer, so I thought I'd check if any guidelines/best practices/documentation existed before I resorted to the trial-and-error method.
(no subject)
Date: 2009-09-16 12:23 am (UTC)I don't know of any existing clients using this interface. Currently, DW's implementation only differs in that it appears to have been updated to work with Apache2--which is good. And yeah, looks like the content type is as you remember it. However, if you want it to be changed, it'd be an easy fix. The code behind the S2 interface is here:
http://hg.dwscoalition.org/dw-free/file/5cf6a90a3700/cgi-bin/Apache/LiveJournal/Interface/S2.pm
If that helps you any. And if you need any help deciphering, I'm willing to help.
(no subject)
Date: 2009-09-16 01:22 am (UTC)(no subject)
Date: 2009-09-16 02:42 am (UTC)