Get a list of emails - evernote

I am new to evernote. I want to work with evernote javascript SDK, as js is what I understand best. So my task is to get a list of e-mails from evernote.(get an array of emails). I have some web pages that are saved in evernote.
How can I retrieve an email from each web page?
I know how to do this from a webpage in browser. But evernote seems to have some crossorigin restrictions. So it is only possible with node.js as i understand.
What I have done already: registered new test api key, downloaded and installed SDK by NPM, what next.

Evernote JS API doesn't support CORS as stated here: https://github.com/evernote/evernote-sdk-js#does-the-api-support-cors-cross-origin-resource-sharing
So you need a server-side code (e.g. on Node.js, see the provided example: https://github.com/evernote/evernote-sdk-js/tree/master/sample/express) that does the communication with Evernote servers, and then can pass this information down to the browser.

Related

Pricing for google translate api

one of our clients want to use google translate in its web application which is built in asp.net C#. First of all, is its free version or paid version?
I found one reference and we have already tried it.
https://www.w3schools.com/howto/howto_google_translate.asp
The only concern is can we use without Api key or license or we need to purchase. Our asp.net code will be published in IIS and multiple users are there to access this URL.
Yes, it is a free service.
You can use it without API key or license.
It translates your site on front-end, and totally different from having a page with multiple languages.
Check https://cloud.google.com/translate/docs/reference/rest if you need server side translating and more options.

Persist Firebase Auth session in Google Workspace Add-on

I'm working on a Google Sheets add-on that needs to interact with existing web-app. The app uses Firebase for authentication. Firebase is not available as an "Advanced Google Service" and there is no official library (as well as official docs advice against using libraries in an add-on), so I'm using #firebase/auth in the client-side code.
The code is simple and the same as I'm using in the web-app (without FirebaseUI, but I've tried it as well) and because add-ons cannot use cookies or localStorage*, the Firebase cannot persist a local session.
Within the add-on we can only use Google Script Properties service, so I'm looking if there is a way to persist a session manually for the Firebase (like provide own "Storage" implementation, I've just done this for another node package I use in the add-on).
The question is mostly about Firebase and environment with no cookies/localStorage but other storage, but I may be missing some other way to use Firebase Auth with script add-ons.
Thanks for you help.
Edited: removed indexedDB, I've checked it in Console and accidentally switched from iframe to the top context, of course indexedDB is also unavailable in iframe (we should be sure the add-on works in Chrome).
* yes, we can ask user to go to the Chrome settings and select "Allow all cookies" but this is not an option for production.
I don't think there's any documented way to control the storage that Firebase Authentication beyond the picking from the options mentioned in the documentation on auth state persistence.
I think allowing you to provide a custom storage implementation would be a valid feature request, so I recommend asking for it here. I don't think the request comes up frequently though, so it may not get the priority you'd like. In that case: implementing the feature would require allowing the developer to specify their own storage in the public SDK, and then you in your project implementing your own storage provider similar to the storage providers in the SDK.

How to autofill support email in the GCP project

I’m creating the GCP project using this method https://cloud.google.com/resource-manager/reference/rest/v1/projects/create. As I understand this method doesn’t allow fill the Support email for the project.
Please, advise me, what other options are there to fill the support email automatically through the API?
The answer here is that currently the creation or submission of the email address for support portal use is not supported using the projects.create methods of the API... The full list of all methods for the API are listed in this documentation1.You can always file a feature by following the instructions contained here2

How do I listen for Firebase Cloud Messaging messages in the background in a Google Chrome Extension?

I have a Google Chrome Extension that listens for GCM messages in a background script via chrome.gcm.onMessage.addListener. Our provider is planning to upgrade their infrastructure to use the latest Firebase Cloud Messaging which is no longer compatible with GCM. We've confirmed the gcm addListener API no longer receives messages after upgrading to FCM in the dev environment.
I've found migration guides for Android, iOS, and progressive web apps but none specifically for background scripts in Chrome extensions.
Some resources I've found:
Official Chrome Extension example but is specifically for authentication
Documentation for JavaScript, specifically PWAs
Upgrade notification from the Google Developers Blog
The extension that I mentioned in my question three years ago still exists today and continues to rely on the chrome.gcm extension API.
Recently we noticed the gcm.notification.badge value is no longer being passed along with the data object, instead we're seeing a gcm.notification.e property that I believe contains the badge value. I was unable to find any documentation on why that property changed but I did find an answer to my original question:
We are deprecating the chrome.gcm API and encourage you to move to Web
Push Notifications using VAPID authentication. This works on the Web,
in Chrome Extensions and in Chrome Apps. You can find more information
here:
https://developers.google.com/web/fundamentals/push-notifications/
Web Push Notifications offer a slightly different set of features from
the chrome.gcm API. Please file an issue or contact us directly if you
believe that it cannot satisfy your requirements.
Source: https://bugs.chromium.org/p/chromium/issues/detail?id=831532

How to add javascript code to google functions

I want to write a google cloud function that will respond to POST requests. I want to write it in Javascript.
I've found Google's tutorial on how to do it, but at the beginning of the tutorial it says that this is a deprecated thing, and I have to do it using Cloud Endpoints Frameworks for App Engine. However, the link they provide doesn't help.
Any ideas on how to write a javascript google cloud function?
Link to the tutorial that I've found:
https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/python/getstarted/clients/js/add_javascript
The warning that's displayed at the beginning of the tutorial:
Cloud Endpoints Frameworks v1 has been deprecated and will be shut
down on August 2, 2018. We recommend that you use the latest version
of this feature, which is renamed to Cloud Endpoints Frameworks for
App Engine. This new version supports App Engine standard environment,
provides lower latency, and has better integration with App Engine.
For more details, see Migrating to 2.0.
The migration link points to https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/python/migrating
There are two completely different things you're talking about here.
Google Cloud Functions is a serverless way to write functions in Javascript which respond to HTTP requests.
Google Cloud Endpoints Frameworks for App Engine is a way to write App Engine applications in Python or Java which respond to HTTP requests.
The first link you provide is about writing browser-side JavaScript code which calls an Endpoints service. The corresponding link for the Endpoints 2.0 product is here.
Depending on what you actually want to do, you should consult one or more of these links.

Resources