Trying Chat21 REST API with cloud functions on Firebase real time database.
After creating a group and getting a 'success': 'true' response from REST API, I try to find a way to retrieve the ID of the newly created group.
Tried to find an endpoint to fetch the group ID but I cannot find one.
Related
We have three mobile apps that connect to our firebase instance: a client facing app, and two admin/employee facing apps. We log a variety of events in each, but we have several categories of events that we'd like to log that are not client-facing or initiated, but we need to attribute to a user. For example, if a user places an order and their payment is denied, or if they place an order that our system automatically cancels for some reason. Is it possible to log these from a function? We know the user ID, so it would be easy for us to attribute the event to the correct user, but I don't see a way to do this from a function.
Firebase Analytics does not support direct logging of events from sources other than the mobile app. However, you can:
Export your Firebase data to BigQuery, making sure that your events have the ID of the user
Write backend code to log other events to another table in BigQuery, using the same ID
Write a query to join those tables on the common ID to get continuity among all those events
Essentially, you will need to corral all your data in BigQuery to make it possible to merge your data from both the frontend and backend.
I am creating a telegram bot to fetch messages from a chat group. But I have noticed that inappropriate comments that are deleted by admin/me in the group are still fetched when I call /getUpdates method (i.e. using telegram api)
https://api.telegram.org/bot<token>/getUpdates
My question is - is there a way, I can tell that a message has been deleted in the group from the json results that I get when I call the /getUpdates endpoint?
You need to look at edited_message, see: https://core.telegram.org/bots/api#update
How many maximum Registration ID'S/Token ID's can subscribe in AWS SNS?
How I Track Registration ID's/Token ID's STATUS?
Once you have set up a Registration ID or Token ID, it's more generally called a Platform Endpoint.
The maximum number of subscriptions for a single SNS topic is 12 500 000 (source), and each Platform Endpoint counts as one subscriber. You can request an increase to this limit if you need to.
I'm not sure what you mean by tracking their status—there are many attributes that you might consider as 'status'.
You can list all of the subscriptions for a topic using ListSubscriptionsByTopic. This is also the only way to find out if a specific endpoint is subscribed to a specific topic, unless you have the subscription arn.
You can find out if a Platform Endpoint is enabled using GetEndpointAttributes.
You can check on the status of a subscription using GetSubscriptionAttributes.
We are using Analytics Reporting API v4 in our backend to process analytical data collected from our clients (apps & website). We are facing an issue that the reporting API requires a viewId parameter to be present in the request that queries analytical data, otherwise the request fails.
// create the ReportRequest object
ReportRequest request = new ReportRequest().setViewId("your-view-id-here")
.setDateRanges(Arrays.asList(dateRange))
.setDimensions(Arrays.asList(browser))
.setMetrics(Arrays.asList(sessions));
According to their documentation, the viewId parameter can be extracted from the Google Analytics Console, which is correct.
The problem we are facing is that our "Website" property in Google Analytics already has a view where we can extract the ID from under it's settings:
This is great and exactly what we need, but for the "iOS" and "Android" properties, there is no view and the button to create one is greyed out:
Is there any way to query the API without specifying a viewId or is there a way to create a view in the console that we are unaware of?
Could the issue be caused by the fact that we are using Firebase to collect our data in Android and iOS?
How to get Google analytics data in our database and after first time authorize data all data store and automatically update daily without authorization.
once I authorize in Google account and after authorize and store data in our data base and again login in site so in this time how to update all Google analytics data in our database please help me.
I wait for your reply.
You can use the core reporting api v4. Whenever you perform a request you get a response with a pageToken. The final response is the one that returns a null pageToken. This is the key criterion to get all the data you want! Keep in mind that each request requests at most 10000 rows of data! You need some credentials to get authorized for accessing google analytics. There are two ways: The first one is using a json file and the second one using the .p12 file. In bothe cases you need a view Id. For more details you can have a look at core reporting api v4 documentation! Each time you perform a request one more authentication is triggered! It is inevitable! GA api is extremely fast though!
if u want to access google analyitics data first u must use offline so we can get refresh token this referesh token store in your database if u want to again u r data without authorization u can use this refresh token and generate access token so now each and every time u can get updated google analytics data by using offline access .........