Forum Discussion
Hey kc,
We have many different tagging APIs. For your specific questions you should take a look at the following pages.
- For getting information about tags used in a board look at Board.tagging (the /tagging/tags/all call will get you all tags applied to any message on a board)
- For getting information about tags on a message look at Message.tagging
- Adding and removing tags can be done using /tagging/tags/add and /tagging/tags/remove, which you can see here Message.taggin
- I don't believe we currently support getting specific timestamps of tag events via Rest API, but you can tags ordered by recency using the tagging/tags/recent call Messages.tagging.recent. Also you can get tags that a specific user has added using the /tags/for/users/id/[user_id] filter.
Hope this helps,
Yuri
- kc12 years agoAce
Yuri,
My question was regarding custom tags (as described here: http://lithosphere.lithium.com/t5/custom-tags/About-custom-tags/ta-p/35452). The APIs you referred to are for the 'classical' tags that everyone is able to see.
Thanks,
kc
- YuriK12 years agoKhoros Expert
Ah, sorry about that.
I see you've already found the Using the Rest API with Custom Tags page. As you pointed out there, you would need to know the key for each custom tag.
You can use the following filter to get posts where a custom tag is set:
posts/for/metadata/key/[key]/value/[value]
Note: in the case where you have an attribute tag, set [value] to true
You can use the following calls to set and remove tags:
metadata/key/[key]/reset
metadata/key/[key]/set
Unfortunately, this only covers one and a half or your use cases. Can you please add your request to the Customer Ideas board?
Thank you,
Yuri