Track private message visit via API

javascript

(cpk) #1

Is there a way to tell a message that is has been visited by the api_username from the API? I am mimicking the web GET request like so:

http://localhost:8100/v1/t/42439/1.json?track_visit=true&api_key=639786275e484433ff1e0c7fe71000499d82400f9018594fb609e&api_username=testUser

Headers are:

var req = {
    headers: {
        'Accept':'application/json, text/javascript, */*',
        'Content-Type' : 'application/json',
        'Discourse-Track-View' : true
    }
};

Getting a 200 and JSON just fine, but the visit to the message is not being tracked. Any insight would be a huge help. Thanks!


(cpk) #2

Would anyone know a way to do this?