leeclemmer
Joined 6 years ago
Joined 6 years ago
I don't think that there's an API that will return you all the banned users, only the ban details for a specific user.
When you query the users, you can grab the "banned" and see if it's true. If it's true, you can use the API v1 to see the details. Something like this:
<#assign banData = restadmin("/users/id/${item.id}/moderation/banned/details").bans.ban>
<#list banData as ban>
Banned by: <a href="/t5/user/viewprofilepage/user-id/${ban.banned_by}" target="_blank">${users.firstNameLastInitial(ban.banned_by)}</a><br>
Ban reason: <#if ban.banned_reason == "">empty<#else>${ban.banned_reason}</#if><br>
Public ban reason: <#if ban.public_banned_reason == "">empty<#else>${ban.public_banned_reason}</#if><br>
Banned on: ${ban.date_start?number?number_to_datetime}<br>
Banned until: <#if ban.date_end == "-1"><b>forever</b><#else>${ban.date_end?number?number_to_datetime}</#if>
</#list>
leeclemmerIf you need to periodically retrieve a list of deleted messages, you can refer to the 'bulkdata' for the action key 'message.delete' using the following API call.
curl "https://api.lithium.com/lsi-data/v2/data/export/community/<community_id>?fromDate=YYYYMMDDhhmm&toDate=YYYYMMDDhhmm" -H "client-id: <client-id>" -u "<token>:"
For additional information, please refer the following document.
https://developer.khoros.com/khoroscommunitydevdocs/reference/bulk-data-api-v2#actionkey-events
Hi leeclemmer , The date field is not updated when a post is moved from one board to another as we are only changing the location of the post and not its created/edited date. Move action is not treated as edit.
We have requested the 'move message' action key to be made available at least in bulk data (goes back to 2018) for our community so that we have a way of tracking such changes programmatically, but unfortunately, the feature is not available yet.