We need to get a list of people reacting to a post.
We found that the SDK does not yet support this. However, we do need to get this feature running and we found that we might be able to get the data from REST instead of relying on SDK websockets.
We want to be able to use this endpoint Swagger UI
Could you please help clarify on what are the parameters that is required to be passed.
On the problem that you have concerning the rest request, I believe this is because the token bearer value is not matching any known network ; I do understand you redacted it for security reasons, but it seems you are targeting our staging instance which is reserved from Amity’s quality control and internal testing usage ; therefore your network might not be there.
Please do know that the APi functions are in fact available in the web sdk for your usecase. The functions you’re looking for are located in:
That said, while building a quick example to help you get through this I found a tiny bug in that function so I’ll add to publish a patch along with the next release and let you know.
About why you may have not known about this feature in our SDK, I will raise the feedback to the our documentation team.
If you have any more questions please do let me know.
Julien
The referenceId should normally be either a postId, a commentId or a messageId.
According to your screenshot about the LiveCollection, you may be experiencing a false positive (or not). Live Collections are stateful objects created synchronously, but they do query data a bit later on, and populates themselves back asynchronously as well ; therefore you should listen to the “dataUpdated” event and look for the models passed in the event listener rather than looking at values in the object directly as those may change over time.
Concerning the REST APi, please know that it’s currently not recommended nor advertised to use it on your end. We’re constantly working on improving it and signatures may change quite often. It is recommended to use SDKs instead.
About the choice of eko-sdk vs @amityco/js-sdk, it is actually the same package with few differences in naming. We will keep patching the eko-sdk for backward compatibility reasons for customers who already use it and depends on it, but the newly published @amityco/js-sdk is the one on which we will continue to deploy new features moving forward.
As a confirmation of my saying in my earlier post, the web team is actively working on the issue you spotted and will come back to you shortly with a patch in the coming days/weeks.