Is it possible to use either Google Apps Script or the Google Sheets API to host a REST API, so that I can make client-side content requests on a static web page? If so, how would I go about this?
I'm building a simple website hosted on GitHub, and I want to experiment with using a spreadsheet as a content management system, e.g. fetching a running list of projects with corresponding text, images, etc.
Forgive me if I completely misunderstood the capabilities of either/both of these applications, or overlooked a previous ask!
You can use the Sheets API with multiple languages.
Here you have the different quickstarts that show you how to do it: https://developers.google.com/sheets/api/guides/concepts
Also you can create a Web App with Apps Script and embed it in your website: https://developers.google.com/apps-script/guides/web
Related
I have found an interesting google script file, but would like to change it a bit to run it locally on my system.
Locally I use Python.
How can this be easily converted or to which language is it comparable?
The script is generating a new presentation with a specific slide template (shape).
This part raises the most questions, of how to do it locally.
Probably something with OpenCv / mathplotlib to generate a template.
If you are looking "easy" options, keep using Google Apps Script.
Google Apps Script uses JavaScript as programming language and has several services that make it convenient to automate Google apps like Google Slides.
In order to minimize the convertion work, you might create a web app using Google Apps Script to respond to HTTP GET or POST requests that you might do from Python.
If you still insist is using a Python only code, you should "translate" JavaScript code into Python code and replace the calls to services like Slides (SlidesApp) into calls to Google Slides API. This implies that you will have to use Google OAuth 2.
Another option is that you enable the Google Apps Script API (this also requires Google OAuth 2) and call the Google Apps Script functions from Python.
Also you have the option to change your approach, i.e., instead of using Python run Google Apps Script functions using CLASP, but still can't be qualified as easy.
I am trying to implement Google ads enhanced conversions. I have the option of doing it using the gtag, google tag manager or using the Ads api. However, On the Ads api I don't see any documentation related to Node Js. I am not able to figure out how I can make use of the Ads api to implement enhanced conversions with Node Js.
This is the official documentation for enhanced conversion using Ads api and i don't see anything related to Node Js
https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions
Google provides no official Node SDK currently for Google Ads API.
https://github.com/Opteo/google-ads-node is an open source node sdk. It's a bit bloated for Lambda environments, but could be fine for most people.
You'll also have to fill out a form and submit to Google for approval to use the Google Ads API. Takes 48+ hours to get approved.
Another option is Google can ping an http or sftp endpoint of yours and just get a csv file you supply of all conversions for the day. This might be a simple approach.
Let's hope Google provides an official node sdk with simple way to upload ad conversions from server.
I've been researching javascript, jquery, xml, google scripts, and the google spreadsheet api, with little luck. I'm trying to create a website that uses a google spreadsheet as a database. It needs to run on a chrome book.
Hosting sites on google drive doesn't seem to allow jquery. So I can only use html, css, and javascript, that I know of. I usually create asp.net sites with a C# backend, but I can't seem to figure out how to even get data from a published google spreadsheet to display on a google drive hosted website.
Do any of you have a path that you would suggest? I'm all for researching myself but I need a good starting point which I have yet to find.
Thanks
There is a GitHub library for PHP, if your site happens to use PHP
github.com php-google-spreadsheet-client
There are a few options:
Google Sites - With a Google Stand Alone HTML Apps Script in a Apps Script Gadget
Google Stand Alone HTML Apps Script
Website that Uses the Sheets API
If you try to access a Google sheet from a website with a different domain name, you will get a CORS error. CORS is a Cross Origin Resource Sharing. Each option for connecting to a spreadsheet has it's own issues. If you use a Stand Alone HTML App with Apps Script, you can't have a domain name. A free Google Site, doesn't have a domain name, but it's a nicer URL, and a Google Site can be mapped to a domain name. A website with a regular domain name, will require an API to do something with Sheets. The documentation for the Sheets API show examples written in Protocol, Java, and .Net. But, the documentation states:
A number of client libraries are provided in various languages. These client libraries make it easier to interact with the Sheets API.
But I don't see any reference to where all these various languages are.
I don't know of any easy to understand documentation for using a Google spreadsheet as a data source from a website. So, unfortunately, I don't know of an easy answer. The answer depends on what you want/need, and how much time and skill you have to set it up.
So, do you need a domain name or not? You can map a Google Site to a domain name:
https://support.google.com/sites/answer/99448?hl=en
But the documentation also states:
You can't map your domain to what is known as a naked domain, such as http://example.com
If you need to use a website and connect to the Google spreadsheet with an API, you'll need to run an authorization. Otherwise, any website could read/write to your spreadsheet.
Obviously there are websites that write data to Google spreadsheets, so it's possible.
You can also look at posts like this:
google-spreadsheet-api-with-php
how-do-i-access-the-google-spreadsheets-api-in-php
I need to create a Windows 7 Gadget (or Widget) as a mini project. I know how to create a basic HelloWorld gadget (including the xml manifest and the html page), but I do not know how to make a complex one.
My company uses a bug tracking software (say, XYZ). My widget needs to be able to access and display data from XYZ regarding bugs, given a bug ID, or other search criteria.
I currently have the APPGUID and server name for XYZ.
Please help. I do not know where to start.
If your bug tracking software (XYZ) is a web application then you need to use its web service or you need to scrape the site to access the data regarding the bugs. You can simply scrape the site using the Simple HTML DOM.
Example can be seen in PHP Simple HTML DOM Scrape External URL
To download the library the link is http://sourceforge.net/projects/simplehtmldom/files/
Then you can scrape and display the data as the normal HTML code.
OR you have to use the web service provided by the XYZ application.
I have finished building a new website using HTML, CSS, JS, and Bootstrap for a non profit organization as volunteer and currently they are using Weebly to host their site. I have simply been using my student domain hosted by my college to show my progress of the website, but now that I have finished I want to transfer it over to their official site. I was wondering if it is even possible to transfer all my code into Weebly and not use their pre-made themes? Especially since I am using Bootstrap. Will I have to tell them they need a new web hosting service if they want to use the website I designed them? Cause I am having trouble with Weebly doing that.
Sorry if this a dumb question, I am not knowledgeable about Web hosting and recently begun designing websites.
Thank you!
You could advise the organization to switch web hosting providers. There are many out there that are free or provide discounts for non-profits. Deploy your website there, then get their existing domain provider to redirect theirdomain.com to the new provider.
Is that non-profit organisation using free website from weebly ? i mean subdomain ? e.g. xyz.weebly.com ?
If yes, in free acoount of weebly, there are many restrictions on features...
Till u can use your own codes in weebly...
(weebly does not support php)
Log in to weebly and follow images attached below to go to edit weebly html/css