I am trying to query an aggregated activity, by it's group.
Use case: Trying to query an aggregated activity, to get the activity_count.
I have tried feed.get, but i can only make it work if i use group.id, but i don't know how i am able to get group.id from the group that i am retrieving from the webhook.
feed.get(id_lte=group, id_gte=group, limit=1 )
I have also tried getActivityDetail but it returns another aggregated activity.
feed.getActivityDetail(activity.id) - (not aggregated activity, retrieved from the webhook)
Anyone knows how to query the aggregated activity?
Related links: Is there a way to retrieve the aggregated notification from GetStream webhook , getstream-io: Using getActivities with an aggregated feed id
It is impossible to get group ID via realtime notification system. Group ID is only available when reading from the feed itself
You could read the feed with limit of 1 every time you receive the notification to check which group activity ended up in.
Related
I am looking for a feed API with the functionality in the question above, where a user's feed shows only the posts that match the tags the user is subscribed to. Is that possible with stream?
If you create a feed for each tag, and have users follow those feeds, then their timeline will be filled with all activities from the feeds they follow. This is standard behavior in Stream Feeds.
We are using Chatbase for multiple clients that we identify with a different version number.
See my previous question here: Track multiple context for the same Bot
We have a dashboard for all those clients and would like to show them their own data. A bit like Google analytics allows it.
So:
Is an API in the pipeline (I couldn't find any existing resources)
If not, in what alternative way could we get the data to present it?
We have a .csv export that is currently limited to the first 500 rows of your message variations report. It is on our roadmap to increase the scope of this report, however there is no official timeline for release.
Our recommendation for deploying an integration like you described in your message is as follows:
Have the user create a Chatbase account in order to obtain the API key
Have the user integrate their analytics on your platform by providing the API key
Send the messages from their bot to their Chatbase API
Provide the user deeplinks to the Chatbase reports from within your UI
Alternatively, you could configure your bot to send a redundant message to an internal database, or bigquery table to have access to all of your logs.
If you would like access to data you have sent to Chatbase up to this point, please contact chatbase-support#google.com and provide your bot's name and/or api key and we can provide a one-time export.
I want to create functionality similar to hashtags on Twitter with the Getstream.io API. Users will post messages to their own flat feeds with certain hashtags. Then I want to be able to filter all activities based on a certain hashtag.
You have to think of a hashtag as a separate feed. Every hashtag is a topic feed with all activities posted with that specific identifier in their object. Thus to achieve this behavior with Getstream we need to create a feed group that can store feeds for all hashtags (or topics). Often such a feed group is called topic but you could also name it hashtag (create new feed groups on the getstream.io dashboard). Now we need to be able to send activities to their corresponding topic feeds when posted to a users' flat feed. For this we can use the to field of activities. When a user posts an activity with hashtag computers in the message we will create the following activity on the users flat feed:
{
"actor": "user:1",
"object": "I love #computers ^^"
"verb": "tweet",
"to": ["topic:computers"]
}
The to field will make sure the activity is also added to the topic feed and distributed to all the followers of this topic feed.
I am using Azure billing API (Resource Usage-Preview) for getting the consumption data for an Azure subscription and trying to get the aggregated data of particular dates on daily basis. As per the documentation, I am sending showDetails parameter as false while calling API which defines the data should be aggregated, but not able to get aggregated data. In order to make sure the issue I stored data in database and found duplicate entries for the same subscriptionId, meterId, usageStartTime and usageEndTime which seems not correct and also irrespective of the value of showDetails (true or false) parameter I am getting same number of records which all are not aggregated.
Url which i am using :
https://management.azure.com/subscriptions/My SubscriptionId/providers/Microsoft.Commerce/UsageAggregates?api-version=2015-06-01-preview&reportedstartTime=2016-03-02+00%3a00%3a00Z&reportedEndTime=2016-03-03+00%3a00%3a00Z&aggregationGranularity=Daily&showDetails=false
Does anyone has faced the same issue or have any idea on this please?
Currently I am sending activity content in custom filed and whole activity is stored at getstream. Nothing on my local database.
What is the best? Should be first store the content message at our database and then send activity to getstream or its ok if we don't stroe activity content at our database
In general it is best practice to store any extra data in your local database and enrich activities with this data once they are retrieved from the getstream API, this way you can update any data related to an activity. You can have a look at some of the Getstream integration packages which perform this enrichment for you