API zum Zurücksetzen der Anzahl ungelesener Beiträge

Hallo Team,

gibt es eine API, um die Anzahl der ungelesenen Beiträge für beantwortete Themen zurückzusetzen?

Ich habe Reverse Engineering betrieben und folgende APIs aufgerufen:

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

und

http://192.168.131.180/topics/timings

aber das funktioniert nicht.

See How to reverse engineer the Discourse API

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.

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

3 „Gefällt mir“