Is there any way to query all the posts by a user, even if they are in commmunities?
Hello @BenGannaway , you can use our search post API: Search Posts API | social.plus docs and filter by the postedUserId
.
I’m getting unauthorised hitting this with my admin token as a bearer token. Does it need to be enabled for my account or something?
You’ll need to use a user token. Please see the example below:
curl --location 'https://beta.amity.services/api/v3/search/posts?postedUserId=_admin_' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkdTLWNDSUFib1IyQUhfQXczY29Bb0VtR1ZkdzFfaWxjc09BWGx6OXBoSFkifQ.eyJ1c2VyIjp7InVzZxxx...'