Google Play Game Services REST api Snapshot load/commit - rest

Anyone know if it is possible to load/commit snapshot through the Google Play Game Services REST api?
Im using this documentation: https://developers.google.com/games/services/web/api/snapshots
But it only seems to allow fetching Snapshots metadata.
Thanks.

One of the fields of the metadata is driveId. This is the id to pass to the Drive API to read the data. See https://developers.google.com/drive/v2/reference/files/get for the API information for get.

Related

Are there any good examples of tutorials of the Firestore REST API RunQuery endpoint?

I've successfully gotten my Vapor app to read and write collections and documents from Firestore, but I now have a use case where a query is required. I've followed the documentation for Firestore Queries and am using them in my iOS client successfully, which utilizes the iOS Firestore library not the REST API, but on the server I've haven't been unable to figure out how to execute the same query. The Firestore documentation seems incomplete in this area.
This API endpoint tool from Google does allow me to submit queries but there appears to be very little documentation on how to format the fields in the request body for the RunQuery endpoint.
https://developers.google.com/apis-explorer/#search/firestore/firestore/v1/firestore.projects.databases.documents.runQuery
Does anyone have experience to share on how to format the request body to create a well formed query to Firestore with the REST API?
FWIW, this Medium post was awesome for getting started with the REST API but stops just short of the richer Firestore requests.
https://medium.com/rocket-fuel/getting-started-with-firebase-for-server-side-swift-93c11098702a
I've found a good example at https://www.jeansnyman.com/firebase/google-firestore-rest-api-examples/#get-selected-fields-in-a-document-that-meets-specific-requirements-limit-it-to-4-results-and-order-by-created-date
You may also use Chrome Devtools (or similar) to view the REST API runQuery request if you use the interactive query tool in the Firestore UI. The request in the Devtools network tab will start out with documents:runQuery

Send existing geolocation data from cloud server to Live Objects

I currently have a running instance in Google Cloud which stores geolocation data from an IoT device. I wanted to connect my Google Cloud server to Live Objects so that these geolocation data can be used. Is there a way to connect Google Cloud and Live Objects together, to share data? Or is there a way to send a post request from an external server script (Node.js) to Live Objects without using MQTT? The post request is just a normal HTTP post. The HTTP post will be sent using REST API.
Thanks in advance.
Yes you can push data in Live Objects by using HTTPS REST API
check https://liveobjects.orange-business.com/swagger-ui/index.html#!/Data_management_data_store/addDataMessageUsingPOST
and example here: https://liveobjects.orange-business.com/doc/html/lo_manual.html#STREAMS
cheers

How can I access my database (mongodb mlab) directly from a react application without actually having to build an api?

There are tons of examples creating a react crud application using api, but I could not find one that directly access the database. Even when I continued with the api, I didn't know how to restrict people from using the api to delete and put data stored. Please help me and Thanks in advance.
Check out firebase. Here's a tutorial on integrating with React:
https://www.youtube.com/watch?v=mwNATxfUsgI
Firebase is a backend as a service. It won't let you access your mongo db database, but it will allow you to provide you with a databse

how to import JSON data from rest API to google firebase?

I am planning to use Firebase as my backend service for the mobile application. As part of the functionality, I need to get the data from external rest API which returns JSON data. I need to update the data periodically so that I can have updated information.
I have an option to call the rest API and update firebase on the mobile application however it is not the right approach. I prefer to keep this logic on the backend service.
Is there a way to use Firebase cloud function to periodically update firebase database from external Rest API?
#Ioki, I assume what you are trying to do is make a mobile app which gets updated data every time a user goes to the app but you want this to be on the backend. I haven't tried it but you might want to use Node js with their Firebase Admin SDK.
See the link: https://firebase.google.com/docs/admin/setup
Although I think it might make more sense to use the real-time database via the iOS/ Android SDK because automatic/ value event updates are basically the purpose of the real- time database. Good luck! :)

Analytics Metdata API (Java)

I am trying to get the full list of allowed Dimensions and Metrics from the Metadata API and finding a problem accessing it as I am using the Reporting API v4 anyone has any idea how I can make something like this Metadata.Columns.List("ga").execute() work?
Finally what I did is I used the v3 client library for the Metadata API (separately from the v4 of the Reporting API from the corresponding client library) and been able to work with analytics.metadata().columns().list("ga").execute();