Post unread count clear api


#1

Hi Team,

Is there any api for clear unread count for replied topic?

I have done reverse engineering and called api

http://192.168.131.180/t/{topic_id}/{posts_count}.json?track_visit=true&forceLoad=true&_={timestamp}&api_key={user_api_key}

and

http://192.168.131.180/topics/timings

but it’s not working.


(Jeff Atwood) #2

See How to reverse engineer the Discourse API


#3

I have done reverse engineering and called api

http://192.168.131.180/t/{topic_id}/{posts_count}.json?track_visit=true&forceLoad=true&_={timestamp}&api_key={user_api_key}

and

http://192.168.131.180/topics/timings

but it’s not working.


(Saurabh Patel) #4

I looked through code and second request should have done the trick. I tried and I was successful in clearing the count. Attaching screenshot of my request which got a 200 OK status and cleared count.

Screenshot%20from%202019-01-14%2015-12-07

Timings[6] should be timings[posts_count]. You can add just one timings[posts_count] and clearing should work. I think other timings[posts_count - x] are for tracking purpose.

Have a try and let me know if you have any questions.

Thanks