How to get the likers of the topic with api


(sleep) #1

How to get the likers of the topic with api?

I use the curl method of php to achieve, but it has something error.
Error return: The page you requested does not exist or is private.

Do you know what reason?


(sleep) #2

I have to use api key when it request.


(sleep) #3

Anyone konws?:joy::joy::nose:


(Sam Saffron) #4

https://meta.discourse.org/post_action_users.json?id=154208&post_action_type_id=2

works fine for me.


(sleep) #5

Thank you for your tips.

If I visit the url
http://your host/post_actions/users.json?id=776&post_action_type_id=2
it is ok.

We should use json method to get data of we want.
:stuck_out_tongue:


(cpradio) #6

Yes. Discourse uses these APIs, so you are ensured they will continue to function because breaking them, would break Discourse.