Warning you must upgrade to the latest version of google-spreadsheet - javascript

I am trying to implement a project when I get some data from a google spreadsheet and insert into a database. Inserting part is not important for me yet. When I am trying to get the data from google spreadsheet document I get this Warning!
WARNING! You must upgrade to the latest version of google-spreadsheet!
Google's deprecation date for the v3 sheets API is March 3rd 2020
Bad news - this version of this module will stop working on that date :(
Good news - the new version of the module uses the newer v4 api :)
However, there are breaking changes, so please see the docs site
https://theoephraim.github.io/node-google-spreadsheet
It's still give me the data, but I get the warning.
Somebody who knows how do i get rid of that warning?

The Google Sheets API has been upgrade from version v3 to version v4
What does it mean?
It means that certain method names, parameters and building of the authentication client have changed.
If you are using an old code based on v3, so building the authentication client as
const sheets = google.sheets({version: 'v3', auth});, your code will stop working in the near future
While Google specifies March 3rd 2020 as the deprecation date, there is still some grace period, but your code could stop working any time!
So, please update your code by changing to const sheets = google.sheets({version: 'v3', auth});
Adapt other parts of the authentication flow if necessary to the new procedure provided in the quickstart for v4
Go through the references to see if any of the requests you are using has changed and adapt as necessary.

Related

Google Script Oauth v1.0 REST API access

I need a way to access a Oauth v1.0 rest API form inside google script. google apps script.
I found this page
It says that the Library was sunset in 2015. I tried to add it. When I do I get an error that it's not supported anymore and my script refuses to run.
Error:
Exception: ScriptError Exception: Script is using OAuthConfig which has been shut down. Learn more at https://cloud.google.com/blog/changes-oauth-apps-script [ { function: 'test', lineNumber: 80 } ]
I need to access a external site to download some data. I'm trying to access the data in Gravity Forms.
They are using Oauth v1.0.
I'm able to access the data fine using Postman / Oauth v1.0. However I am unable to find a solution for google apps script.
Can anyone point me in the right direction to get Oauth v1.0 working? Possibly a fully JS option?
The documentation says
The URL Fetch service's OAuthConfig class provided a simple mechanism for connecting to an API that utilized OAuth, specifically OAuth versions 1.0 and 1.0a. This mechanism was sunset on July 6, 2015. The open source library OAuth1 for Apps Script was created as a replacement, and this page will demonstrate how to update your scripts to use this new mechanism.
The mechanism that was sunset was UrlFetchApp's addOauthService method(Class OAuthConfig).
The replacement provided is a open source library here
This library is officially recommended and updated regularly.
Warning: Google's OAuth 1.0 support was deprecated in 2012 and is scheduled to be shut down on April 20, 2015. Scripts using OAuthConfig to connect to a Google API should instead use the OAuth2 for Apps Script library.
This shudown refers to Google's own oauth 1.0 support for Google apis, such as Google maps api or Google drive api and does NOT refer to all third party apis

Outlook javascript failing after update

We are using the Office Plugin with the Office javascript API version 16.0. After the update on August 13th to version 1907 (Build 11901.20218) for our Monthly Channel and version 1902 (Build 11328.20392) on our Semi Annual Channel users we are no longer getting the email address from the userProfile using the javascript API call to Office.context.mailbox.userProfile.emailAddress. This returns a null on every call. Is anyone else experiencing this issue? Or know of a solution? Thanks.
We have tried this on versions of Outlook prior to the August 13, 2019 update and the plugin works as expected.
The solution I found was to reference the CDN office.js from appsforoffice.microsoft.com/lib/1/hosted/Office.js instead of a local version of the office.js

2018 This page can't load Google Maps correctly

Sounds like duplicate? but no, this is happened since a week ago for all websites in the world that used google maps API, even I searched in google: google maps api js fiddle:
http://jsfiddle.net/salman/4mtyu/
https://jsfiddle.net/user2314737/x4gM4/
https://jsfiddle.net/user2314737/2d5qum53/
http://jsfiddle.net/chufol/T78Hd/
https://jsfiddle.net/user2314737/36tgzztv/
See? none of them working, all got message from google:
This page can't load Google Maps correctly
I searched in Stack Overflow, all topics are old and not solve this problem. But look like google need to an api key to work, right?
So in my web site I have api key but I got this error:
Google has disabled use of the Maps API for this site.
And there is a link to enable google maps api, but after I enable api key, still have same error, any solution?
Take a look at this maps didn't load correctly.
This error has become a lot more common since Google Maps started requiring an API key on June 22, 2016 (after about 10 years of allowing keyless use). If you started using Google Maps on your website on or after that date then you will need to sign up for and implement an API key (older users still do not need a key).
Also, You must now enter your billing information in the Console.
Here is official Google guide.
To use the Maps JavaScript API, you must get an API key which you can then add to your app or website. The API key is used to track API requests associated with your project for quota, usage, and billing. To learn more about API keys, see the API Key Best Practices and the FAQs.

Use of Google Maps JavaScript API v3 in PhoneGap iOS App

I'm experiencing a problem in using the Google Maps JavaScript API v3 for a Cordova PhoneGap based iOS App which, up until a few days ago, was working fine.
As I'm not an Objective-C developer I've purposely picked the Google Maps JavaScript API v3 over the iOS Maps SDK and have, in the Google Developers console, created a project and associated a browser key (set to enable all referrers) with that project.
In the head of the HTML page in my PhoneGap App I have called the Google Map API like so:
https://maps.googleapis.com/maps/api/js?key=MY_APPLICATION_KEY_IS_PASTED_HERE&sensor=false
But when I run the App, despite this having worked without a key in previous versions and now having created a browser key and associating that as part of the call to the Google Maps API, I get the following error message:
Google has disabled use of the MAPS API for this application. The key provided is not a valid Google API key or it is not authorised for the Google Maps JavaScript API v3 on this site.
Can anyone provide any suggestions on what I might be missing/doing wrong and what I could possibly do to resolve this as I need to get the App running again. I've looked through the Google Maps and Developer documentation but can't see anything that would alert me to what I might be doing wrong.
Thanks in advance for any help that anyone out there might be able to provide with this query.
I had the same problem. Solved it by setting up a key as per instruction here:
https://developers.google.com/maps/documentation/javascript/tutorial#api_key
BUT setting the "Referrers" to [NOTHING].
KEY NOTE: I had set it explicitly to "*" and this did NOT work and then edited it beck to be empty. I can't believe the edit back to nothing is necessary but...the default was already blank so and did not initially work so ... maybe try the explicit "edit" to blank if all else fails.

Fanbox featureLoader script not found

I have been using the legacy Featureloader.js.php script for some time now without any problems at :
https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
For some reason this server seems to have stopped responding in the last day or so - i get a server not found response in Chrome developer tools -
We want to continue to use the Fanbox plugin, as it allows us to style the returned content appropriate to our site - the new likebox doesnt have that option
Wondered if anyone knew why that server is currently not responding, and whether it's simply a temporary problem or might be a permanent issue?
Thanks
From the Facebook blog:
Removing FeatureLoader JavaScript SDK. As part of the OAuth2 migration, we announced that the FeatureLoader SDK is no longer supported as of October 1st, 2011. On February 1st 2012, we will remove FeatureLoader. Please ensure that your app is using the JS SDK.
See here: https://developers.facebook.com/blog/post/638/ (under "Upcoming Breaking Changes on February 1st 2012")

Categories

Resources