How to autofill support email in the GCP project - firebase

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

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.

Mule4.xx Applying Offline Custom Policies

Has somebody managed to deploy a custom policy via offline Applying Offline Custom Policies
Any additional tricks besides the documentation mentioned in the link above?
We want to apply mule4 custom policy without going through the any point platform but rather from the manual deploy on mule runtime as described in the document which states "If you do not want to use the policy template from... "

Get a list of emails

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.

Embed Alfresco WebPreviewer in my own website

I have a Spring MVC application that connect with Alfresco using CMIS libraries, actually I can upload documents and download it but I need integrate Alfresco's WebPreviewer to preview documents in my app.
I found some code here but I don't know how to do it
It's hard to say for certain because of the limited amount of information that you've provided, but I think that the problem that you're going to be faced with when trying to use any of the existing previewer code is one of authentication. If you're using only using CMIS then you won't be able to use any of the WebScript based REST APIs that the Alfresco widgets will be using.
There are two possible previewer widgets that you can use - the older YUI2 based previewer (that you'd currently find in the document details page and the Document Library film strip view, and the newer Aikau component that you'd find in the faceted search previewer (from version 5.0 onwards).
I suspect that you won't be able to re-use either of these components without either authenticating against Alfresco in a way that allows you to access the WebScript based REST APIs or extending and customizing those widgets.
You've said that you have your own Spring MVC application, but you haven't said whether or not that is using the Surf extension - if it is, and you're using the authentication capabilities provided by Surf then you will be authenticated to use those REST APIs - as the Surf authentication provides access across all APIs (including CMIS) via a single authentication.
If you are able to access those APIs then you should be able to follow the steps outlined in both the form post and the blog posts in your own question and the previous answer, however - based on your question I suspect that you can't do that.
If you've not come across it, you might be interested in the Aikau archetype that builds a ready-made Alfresco client using Surf (see this link) and that tutorial also shows how to use the Aikau previewer (see here).
Because this is providing you with a Spring MVC client that is preconfigured to authenticate against Alfresco, you might be able to port your application to use it.
Otherwise, as I said earlier - chances are you'll need to extend the existing widgets to use the CMIS APIs to render the previewers. Again, Aikau is easier to extend that the old YUI2 widgets - but is reliant on Surf.

Resources