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);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

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": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"username": "string",
"real_name": "string",
"avatar": "string",
"ext_id": "integer",
"followings_counter": "integer",
"followers_counter": "integer",
"posts_counter": "integer",
"discussions_counter": "integer",
"polls_counter": "integer",
"connection_status": "string",
"categories_counter": "integer"
},
{...},
]
}