Skip to main content

Get List of Shares Users for a Specific Post

This endpoint retrieves all shares users for a specific post

info

This operation requires authentication only if content_availability community option is false.

HTTP Request‚Äč

GET /api/v2/post/{id}/shares_users/

Parameters‚Äč

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this post.
limitqueryintegerfalseNumber of results to return per page.
offsetqueryintegerfalseThe initial index from which to return the results.

Example Request‚Äč

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/post/{id}/shares_users/',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Response Schema‚Äč

Status Code 200

NameTypeRequiredRestrictionsDescription
¬Ľ countintegertruenoneTotal results count
¬Ľ nextstring¬¶nullfalsenoneNext page url
¬Ľ previousstring¬¶nullfalsenonePrevious page url
¬Ľ resultslist(User)truenoneList of results

Example responses‚Äč

{
"count": 123,
"next": "string",
"previous": "string",
"results": [
{
"id": 123,
"username": "string",
"real_name": "string",
"avatar": "url",
"ext_id": "string",
"connection_requests_sent_counter": 0,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"followings_counter": 3,
"followers_counter": 4,
"posts_counter": 4,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 1
},
{
"id": 123,
"username": "string",
"real_name": "string",
"avatar": "url",
"ext_id": "string",
"connection_requests_sent_counter": 0,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"followings_counter": 3,
"followers_counter": 4,
"posts_counter": 4,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 1
},
]
}