Rank 2: Process
hot to get the collection activity from admin SDK?? is there any way?? i can see it in console. but to get it as list or do query on them , like, get the last 30 activity on this collection??
Votes
0
Replies
14
Participants
Unknown
Messages
15
Rank 2: Process
hot to get the collection activity from admin SDK?? is there any way?? i can see it in console. but to get it as list or do query on them , like, get the last 30 activity on this collection??
going through the docs, I can't seem to find any resource that allows us to list the activity logs. It probably isn't a feature yet. Mind if I as what your use-case is?
Rank 2: Process
Ya.. i thought it was easy just like getting user logs.. but it was missing from docs when i searched 😂
Rank 2: Process
Can i query the activity logs just like other collections ?? Using listDocuments ??
Rank 2: Process
Rank 2: Process
this one does the job.
Rank 2: Process
but dart SDK doesnt have it. REST epi end points can fetch it
Rank 2: Process
but why the SDK miss it?
Does this give you the Activity logs?
I'm not sure why it isn't included in the SDK. Maybe I'm missing something 😅
Regardless, if it does the job, I would simply make a function to call and process the response from this for now
Rank 2: Process
Just like any normal REST api call.. with api key (with collection permission) , and project id..
Admin
Technically, we have 3 types of APIs, client, server, and admin. The admin related APIs aren't included in the server sdk.
Rank 2: Process
But i can get the collection logs using api key..just like a REST api request.. but i won't report it as bug for sure 🙊
Admin
Ya NVM about that