How to find messages in google spaces using chat.api - google-api

I want to be able to pull all text messages from a google chat space.
I'm looking at the spaces.messages.getbut it assumes you have the ID of a message. In similar programs (MS Teams), you can call an endpoint to list all message ID and then call the message API to extract the contents of an ID. However, google chat has no such API.
Has anyone come across a way to do this?

This is currently not possible
There is already a respective feature request on Google Issue's Tracker.
I recomment you to star it to increase visibility and hope that it will be implemented soon.

Related

Is there an API for extracting rubric grading data in Google Classroom?

I have read a helpful post for grades...
Is there an API for extracting grades in Google Classroom
and the API for grading...
https://developers.google.com/classroom/guides/manage-coursework#grade_student_responses
but haven't been able to see anything for rubric grading data yet. Or am I missing it?
Answer:
Unfortunately, at this time, there isn't a way of getting Rubrics from the Classroom API.
Feature Request:
There is already a report on Google's Issue Tracker which request this feature to be added to the API:
Add Rubrics to Classroom API
It appears that Google does seem to know about this and has responded on the above feature request. What you can do it hit the ☆ next to the issue number in the top left on the aforementioned page - this lets Google know more people are wanting this feature to be implemented and so it is more likely to be seen to faster.

Slack API : Ability to view all recently added users to Slack Channel

I am working on a POC to proof out the ability to get a list of all the new users who have been added to a specific Slack Channel. From my initial review of the Slack API I am not seeing anything that showcases this ability, I was curious to see if anyone had worked on something similar or could point me to resources that would be a viable solution.
I believe there is no ready-made API method available, that will give you that specific information. However, Slack is very flexible and you can use the existing building blocks to easily add additional features as needed.
E.g. To get the requested information you can develop a small Slack app that listens to the member_joined_channel and member_left_channel events to keep track of when members joined a channel.
If you need a historical record of membership in a channel, you could use the Slack API's groups.history method, page through results, and build a membership log by looking for events of type member_joined_channel and member_left_channel through time.

Activities API call not returning correct results

The below api call used to return a feed of results that would have been on my homepage.
https://content.googleapis.com/youtube/v3/activities?home=true&maxResults=50&part=id%2Csnippet%2CcontentDetails&key=AIzaSyC0wL6aecu2rxiTNtW8uvtnb1kx9Kdlb4s
In the past day or so the feed I get has changed to be only videos from some channel called "Popular on YouTube".
Does anyone know why this API call changed? Is it a bug? Is there a different way to get an authenticated user's activity feed?
It turns out the home parameter for the activities api endpoint has been deprecated.
https://developers.google.com/youtube/v3/docs/activities/list
Sounds like you must have been using a shared API key.
Either case, "Popular on Youtube" is a Youtube channel by Youtube. Something has broken functionality and I believe it is referrer issue. With that, I suggest getting a new API Key.
You can learn more about and getting a free personal API Key, if you haven't done so. https://developers.google.com/youtube/v3/docs/errors

Yammer does not return every message in group

Using the following endpoint with the group id and the older_than paging parameter
https://www.yammer.com/api/v1/messages/in_group/[group_id].json?older_than=[msgid(19)]
This does not return every message in that group... it skips messages!
This is a paid network that I am testing, the API is pretty much useless if it does not provide all the messages. Can anyone confirm this limitation!
Using the 'older_than' parameter to try to get all messages isn't going to work:
Reference https://stackoverflow.com/a/19107426/4099849
If you attempt to iterate over messages you will hit some limits. These limits are technical in nature and you would need to revert to the search API to find much older messages. Unfortunately you will have to put up with these limitations if you are dealing with the free version of Yammer as the data export is only available with the paid version.
Assuming you're trying to do some sort of analytics, have a look at the Yammer Data Export API.
There is a similar question : Yammer API - missing messages
The ansnwer is the same and his not acceptable !
When using /api/v1/messages/about_topic/ I get messages not returned by
/api/v1/messages.json
or
/api/v1/messages/in_group
My script respect the API Rate limits and the missing messages are not older than others.
There is something wrong in the API and it must be fixed.
My company is paying for Yammer and expect a reliable API.
If you want all messages inside a group,use below mentioned REST API without all parameters.Then it will list all messages present inside that particular group.
https://www.yammer.com/api/v1/messages/in_group/[group_id].json

Yammer API - missing messages

We have developed an application to extract data from Yammer using the Yammer APIs. We're authenticating using the verified admin's credentials. According to the data export CSV file we know that there are some 25K messages in the network, but we only get 10K messages via the API. Initially thought that the difference was private messages, but the missing messages are a mix of private and public messages.
The API call we are using is: https://www.yammer.com/api/v1/messages.json . We are using the 'older_than' parameter to scan through all the messages.
In the end we had to query the missing messages individually but that is not a very efficient process.
Any ideas about what we could be doing wrong, or why the APIs are missing to many messages?
I'm experiencing the same issue. Even by respecting the API Rate limits there are some messages that are not retrieved. By using /api/v1/messages/about_topic/ I can get them all.
The issue is not linked to the age of messages. Most of the missing ones a quite new.
You can't download all messages via the API call you're using.
Reference https://stackoverflow.com/a/19107426/4099849
If you attempt to iterate over messages you will hit some limits. These limits are technical in nature and you would need to revert to the search API to find much older messages. Unfortunately you will have to put up with these limitations if you are dealing with the free version of Yammer as the data export is only available with the paid version.

Resources