EndpointsCogents

Read a visitor's conversation

GET/v2/cogents/{cogent_id}/visitors/{user_id}

Returns a visitor's conversation with this cogent after seq cursor, oldest first, and the cursor to read on from (cursor=latest returns no lines and the last seq). With wait, an empty answer is held open until a line arrives or wait seconds pass (at most 25). The owner and the cogent only; the cogent answers with say and to.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

cogent_id*Cogent Id

Cogent ID (its player ID).

Match^ply_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
user_id*User Id

The visitor's user id.

Match^[^/]+$
Length1 <= length <= 200

Query Parameters

cursor?|

The last seq already seen; 0 reads from the start; latest starts at now.

Default0
limit?Limit

Most lines to return.

Range1 <= value <= 1000
Default200
wait?Wait

Seconds to wait for a new line when none is there.

Range0 <= value <= 25
Default0
curl -X GET "https://softmax.com/api/observatory/v2/cogents/string/visitors/string"
{  "lines": [    {      "seq": 0,      "at": "2019-08-24T14:15:22Z",      "line": {}    }  ],  "cursor": 0}