Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Tag manipulation API [Feb. 11th, 2006|01:06 am]
LiveJournal Client Discussions



Does anyone know where I can find some client protocol information relating to the tag system?

There are specific things I want to do:

  • Get a list of tags for the logged in user. This is the best I've seen so far—why doesn't the public documentation mention it?
  • Get lists of tags used by the friends of some logged in user. I'm guessing that the usejournal argument could be used for this, but the documentation doesn't imply this. Ideally, I'd like to get all the publicly visible tags for any user, without needing to authenticate...
  • I want to change the tags on a journal entry; I assume they are stored in some metadata property, but I've found no documentation about it.
  • I want to filter raw entries for a given user based on a tag (or tags if the API allows it), ideally without pulling all the user's events and working it out client side.

Any pointers?


[User Picture]From: chris21718
2006-02-10 05:15 pm (UTC)
I'd like to know how to set tags on posts programmatically too. I have all my posts tagged external to LiveJournal and it would be nice to just pull all the posts one by one and do some kind of "set tags" call on each one.
(Reply) (Thread)
[User Picture]From: dmierkin
2006-02-10 05:17 pm (UTC)
meta prop called "taglist"
you can use in in postevent and in editevent
(Reply) (Thread)
[User Picture]From: jwm
2006-02-10 11:49 pm (UTC)

Comma separated list? How should you escape commas in the tag itself, or are they prohibited? What other characters are permissable?

(Reply) (Parent) (Thread)
[User Picture]From: 7semitytneves
2006-02-11 03:29 am (UTC)
as far as i can tell, you can't have commas.
i can't find a way to escape them.
(Reply) (Parent) (Thread)
[User Picture]From: dmierkin
2006-02-11 03:59 pm (UTC)
comma separated list in a string - no need to escape anything. smth like "tag1, tag2"
(Reply) (Parent) (Thread)