I want to be able to Call google app engine from google cloud function is it possible? cant find any solution
From Google's documentation
The simplest approach for communicating with your App Engine service is to send targeted HTTP requests, where the URL includes the name or ID of a resource.
Related
I have a very big task, I need to automate the process of creating Dialogflow agents, for which I need to first create a Google project, which I have figured out using Java SDK, then I need to get client id and client secret to get an access token to send it to Dialogflow agent creation REST call, I just don't know how to generate a Oauth credentials for a project.
I'm using Java, Play framework. I even got success creating service account but just can't figured out how to generate Oauth creds.
Well, after doing some more research, turns out there is no API or there is no way to create oauth credentials clientId and client_sercret / client_secret.json file programmatically. One has to create it from google console itself.
There are several ways to call a Google API (Dialogflow) one is via a service account.
You mention you have already created a Service Account.
Next you can automate the credential creation via the Google API Client Library for Java as mention here.
Finally just call the Google API
You can find the full documentation of DialogFlow for Java here
I am planning to develop an Android app that will make HTTP request to a REST API (server app) that is hosted on Google App Engine. The data retrieve would be common and visible to all users of the app, so authentication at a user level doesn't not seem necessary. My concern is this, is it necessary for the server app to authenticate that the request is indeed from the intended Android app? If so, is this done internally by the libraries or do I need to implement it myself? Some reading materials on this topic would be very much helpful.
Going through the Google documentations have indicated that the use of a Service Account would seem appropriate, but it bothers me that I would then need to package the credentials along with the Android app, which some how seems to defeat the purpose of authenticating the request, since it's is relatively easy to retrieve the credentials from an apk.
Any guidance in terms of design would be greatly appreciated.
It seems that API Keys is the answer. API Keys can be selected to be limited to a certain Android App during creation.
Reference: https://cloud.google.com/endpoints/docs/frameworks/java/restricting-api-access-with-api-keys-frameworks
I want to get push notification from google calendar into my java app engine backend servlet. My question is, do I need to verify my java app engine backend servlet (which is hosted on google app engine server)?
Thanks.
Yes, you need to verify the domain even if it is hosted by Google App Engine. Remember to always use HTTPS otherwise you won't be able to do it. To verify the easiest way is to create a static HTML file that points to the same file name in the root of the application.
Apparently it can't and I tried using HTML file and meta tag method without any luck to verify my app engine backend site.
I am checking out the google talk api's and it uses XMPP.
Here http://code.google.com/appengine/docs/java/xmpp/overview.html#Sending_Chat_Messages
I am reading on integrating it into my android app. Does anyone know of any good tutorials on using Google talk API with android?
Also does it require app-engine to be integrated?
All you need is XMPP on Android. You can then use GTalk as any other XMPP Server, but make sure to specify the full JID (e.g. "user#gmail.com") as login name.
I want to store my SD card contents to Google docs (or any Google cloud service) and retrieve them from there via an Android device.
Can anyone tell me how to do that?
I guess the best place is to go here http://code.google.com/apis/documents/
You will find examples there on how to programmatically get access to Google Docs.
You can use http library available in Android for accomplishing cloud communication via Android. Android has the Apache http library in its runtime. So you can rely on that. I have written a cloud based app. Hope this little blog can help you
This might be more than you need, but real cloud storage at Google Storage for Developers can be easily and securely accessed using jetS3t (pronounced "jetset"). The icing is that jetset also is compatible with Amazon S3 cloud storage!