{"id":938,"date":"2024-01-28T13:42:08","date_gmt":"2024-01-28T13:42:08","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=938"},"modified":"2024-01-29T11:43:42","modified_gmt":"2024-01-29T11:43:42","slug":"get-threads","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=938","title":{"rendered":"Get threads"},"content":{"rendered":"\r\n<h2>Get threads<\/h2>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>QUERY\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"advert_id\">advert_id<\/td>\r\n<td>integer\r\n<p>Advert ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"interlocutor_id\">interlocutor_id<\/td>\r\n<td>integer\r\n<p>User ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"offset\">offset<\/td>\r\n<td>integer\r\n<p>Starting element<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"limit\">limit<\/td>\r\n<td>integer\r\n<p>Limit<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<h5>RESPONSE SCHEMA:\u00a0application\/json<\/h5>\r\n<p>Array<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"id\">id<\/td>\r\n<td>integer\r\n<p>Thread ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"advert_id\">advert_id<\/td>\r\n<td>integer\r\n<p>Advert ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"interlocutor_id\">interlocutor_id<\/td>\r\n<td>integer\r\n<p>User ID whom is conversation with<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"total_count\">total_count<\/td>\r\n<td>integer\r\n<p>Total count of messages in thread<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"unread_count\">unread_count<\/td>\r\n<td>integer\r\n<p>Count of unread messages in thread<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"created_at\">created_at<\/td>\r\n<td>string\u00a0&lt;date-time&gt;\r\n<p>Time when thread was created<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"is_favourite\">is_favourite<\/td>\r\n<td>boolean\r\n<p>Is this thread marked as favourite<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/threads <code>GET\r\n\/threads\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"id\": 1,\r\n\"advert_id\": 1,\r\n\"interlocutor_id\": 1,\r\n\"total_count\": 1,\r\n\"unread_count\": 0,\r\n\"created_at\": \"2018-01-30 08:26:36\",\r\n\"is_favourite\": false\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/threads Response samples 200 Content type application\/json [ { &#8220;id&#8221;: 1, &#8220;advert_id&#8221;: 1, &#8220;interlocutor_id&#8221;: 1, &#8220;total_count&#8221;: 1, &#8220;unread_count&#8221;: 0, &#8220;created_at&#8221;: &#8220;2018-01-30 08:26:36&#8221;, &#8220;is_favourite&#8221;: false } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get threads AUTHORIZATIONS:&gt; access_token QUERY\u00a0PARAMETERS advert_id integer Advert ID interlocutor_id integer User ID offset integer Starting element limit integer Limit Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json Array id integer Thread ID advert_id integer Advert ID interlocutor_id integer User ID whom is conversation with total_count integer Total count of messages in thread unread_count integer Count of&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=938\" title=\"Read Get threads\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/938"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=938"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/938\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}