Create front end website for Google App Engine app - html

I have created a Google App Engine website using the tutorials and have uploaded it to AAA.appspot.com. But I would like to create a www.AAA.com website and pull data out of the App Engine. In Google App Engine settings you can add www.AAA.com to access Google App Engine API. What I need is a tool or tutorial recommendation to get me started on developing www.AAA.com. I'm very new to website development but am an experience programmer. So I have the Java servlet code setup but I cannot get the front end to connect to it.
In my html form can I do something like <form action="http://AAA.appspot.com/GET_Request_URL" method="get">? What about post requests?

One classic way to connect an HTML front-end to an App Engine back-end is by using the Google JavaScript client library https://developers.google.com/api-client-library/javascript/start/start-js
Romin Irani has nice tutorials on this method, see https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.sbsqvfu3n and in particular Part 4 https://rominirani.com/google-cloud-endpoints-tutorial-part-4-37ea3aac7948#.ivyo2i4pb

Yes you can do that. But I prefer doing it in below way, using reference paths (or) app handler names rather than full URLs
<form action="/mainpage" method="post">
You can use the app handlers only if the code is in GAE. Otherwise, as I said you can do the way you are currently doing by providing complete URLs. It will work for both POST and GET as long as URL has POST and GET methods implemented.

Related

Azure blob access from Html web app

I have a html Web App running off of Azure. I'm trying to figure out how to write and read to a blob from there. I understand I will need a Shared access key, connection string, use a HTTPS and/or HTTP request, use CORS, but now I'm just trying to fill in some blanks about how to set up the endpoints and if I need something in the back end of the web app. How can implement setting up the endpoints with the CORS? Do I need to set up a logic app? What else do I need to set up with the Web App? Will it be better to set up on a Virtual machine? Thank you in advance.
Jonathan
There are several web apps tutorials used with blob storage. Some tutorials i'd highly recommend are as below:
Gallery Photo Web App tutorial:
Provides an example with sample code on how to use a web application with Azure blob storage
Using Azure storage with hosted Azure Web App:
Provides an example on how to integrate and use storage with Azure hosted Web app, including the source code.
Video tutorial:
Video Tutorial showing the use of Azure web App and Storage operations.
These should get you started.

Marketo integrate to custom app

I want to integrate marketo with my web app. In such way that the marketo leads or data automatically sync to app at regular interval.
My web application is in php.
I am new to marketo, Please help.
Only way this is done is by connecting to Marketo Via the Marketo REST or SOAP API, documentation to get you started can be found here:
http://developers.marketo.com/getting-started/
There are several integration platforms available today that let you connect various web apps and automate tasks through a simple interface. These cloud integration platforms use API of the web applications in the backend. All you need to do is connect the apps together and configure the settings. You can connect your own app or on-prem system to web services like Marketo, Salesforce, etc.
Here's a short blog post that shows how apps can be integrated.
https://www.built.io/blog/favorite-services-coupled-together
Let me know if this was helpful.
If you are just wanting to sync data back and forth a webhook might do it for you. That is what I currently use to sync data from Marketo to a PHP app and back to Marketo. Lots of addons to Marketo actually work this way.
Webhooks are also a lot easier/quicker to set up on the Marketo end and then on the PHP side you basically just have to handle the POST.
Marketo Webhook Docs: http://developers.marketo.com/webhooks/

Azureml Web Service - How to create a Rest Service from an Experiment to be consumed by a mobile app?

I've looked all over the google and stackoverflow for the answer but I cant seem to find it. I'm trying to get the output from an azure experiment to an app. I've made the app using ibuildapp and google forms. How can I use the inputs from the google form, pass it to azure and get an output to display on the app?
In order to access your model from your app you want to create a rest service. See here.
http://azure.microsoft.com/en-us/documentation/articles/machine-learning-publish-a-machine-learning-web-service/
Then you will consume this rest serivce from your app using a standard http client. Sample code is available here.
http://azure.microsoft.com/en-us/documentation/articles/machine-learning-consume-web-services/

save data into google SreadSheet with HTML service

I'm working with HTML service.
I create a form submit in HTML service and I want to save the data into google spreadSheet.
Someone can help me?
Thank you.
This can be accomplished in a couple of ways, 1) server-side using the Zend Gdata framework and 2) client side using a spreadsheet app script.
Client Side
Mashe Hawksey wrote a post in his blog here about how to do this purely on the client side using a basic HTML form that posts the data to a google apps macro script and targets a hidden iframe to get around the cross-domain issue.
Here is the example form from the above tutorial.
Here is the spreadsheet of the data being collected into.
I started off using the above method, which does work, but didn't have all the functionalities I need to authenticate users.
Server Side
Using the Zend GData Framework it has much wider scope of functions, but does require a little bit of PHP knowledge.
This is what I now use and it has been a life saver with creating Google apps and using user provisioning with our Google domain.
I hope the above helps.

PhoneGap index page

i know that the index.html page (the PhoneGap startup page) needs to reside on the device. but if we want to create an app who uses third party user authentication before proceeding to core application, so then what we have to do?
Thanks in advance
On android you can change the starting page in the main activity or you can make a redirect in index.html
Well, you don't say if you are platform specific..
And there are lots of third party auth options..
But I can offer two solutions (admittedly my own code etc),
both of them use PhoneGap for Android and PhoneGap Plugins. The key piece of code for me has been the onLocationChange callback feature of the ChildBrowser plugin. Your app can take the user to other sites for auth or whatever, but still get control back.
Tutorial on Using Twitter REST API (OAuth 1, ChildBrowser, jsOAuth plugin)
Free Android App + Source on github : AppLaud App (OpenID, ChildBrowser, custom server)
For authentication, you can have a form in your index.html (maybe under login div) to do a post to an actual webserver.
Then, fetch the data returned from the webserver to let your user access the functionality of your native phonegap application.
You can have the functionality disabled until you receive the successful login from the webserver. If you post via ajax, the webview won't even blink, but you will still get the successful login response from webserver and simply enable functionality on your app after this.
Let me know if this is confusing and I'll try to explain more clearly and
I hope this helps.