I am attempting to retrieve subscriptions count at the article level using the following SQL query:
SELECT * FROM subscriptions WHERE target_type = 'article' AND target_id = '8223';
Although the response indicates success, I'm not receiving any subscription lists. Could someone please review the query and provide guidance on what might be incorrect?
I subscribed the article even after it just returning nothing
As far as I'm aware the v2 API subscriptions are internally scoped to the currently authenticated user, which is not very helpful if you want to get subscriptions for anything else but the current or another specific user. I think there might be a way with API v1, but I have to dig in some dusty code, will get back to you if I find it!
The API v1 call I had in mind was this (docs here)
checked the v1 API reference again to see if we can get subscribers for a specific thread/article because I couldn't get it to work playing around with the calls, but it doesn't seem like there is such a query...
also checked if I could construct a similar query for categories (because there are category subscriptions), but it doesn't work either...
EDIT: I knew there was something else, but it's a bit more cryptic...
So technically for what you are specifically asking you can do this:
although I have no example community to play around with where that would be used afaik. The question would be how to scope that call to a specific label text, which I couldn't get to not throw an error... Technically I guess something like this would work for all labels in a specific board: