GSA: How to obtain ASR (Advanced Search Report) by using Administrative API - google-search-appliance

My organization is using gsa version 7.2
Is it possible to get ASR (Advanced Search Report) by using Administrative API? I referred to a document entitled, “Administrative API Developer’s Guide: Protocol”, nothing is mentioned about that. Is there any other method which allows me to obtain automatically by script?
Thank you.

It's not possible to obtain Advanced Search Reports using the Administrative API. You have to download them from the Admin Console, either by hand or by screen scraping.
For an unsupported example of screen scraping the Admin Console, you can look at gsa_admin.py in the GSA Admin Toolkit. I don't think this includes code to scrape ASR logs, but it should point you in the right direction if you want to try.

Related

Creating a document provider to integrate with Microsoft Teams

I am looking at wanting to create a custom document provider to integrate with Microsoft Teams.
I have looked through the code samples here but cannot find anything that would do this.
https://learn.microsoft.com/en-us/microsoftteams/platform/tutorials/code-samples
Looking at this link, it quotes:
You can always add more cloud storage from other services. Additional services and integrations are available under the “Apps” menu, which you can access by clicking the “Apps” icon in the bottom-left corner
This would suggest to me that you can build third party document providers, but without any documentation or examples I am stumped on how to do this.
https://www.howtogeek.com/661374/how-to-add-third-party-cloud-storage-in-microsoft-teams

Is it possible to launch Word 365 in a browser from a web app to edit documents regardless whether the user has an office 365 license?

My local school allows me to log in to their online portal and access an email account using Outlook 365 within the browser, despite the fact I do not have a license for outlook/office 365.
Is it possible to create a web application where users of this app could click a link to edit a document directly in their browser using Word 365, with us/the developers of such app being the licensee of Word and not the end-user? The remote document would be held in a Sharepoint/Webdav capable service.
If this is possible, which MS-technologies should we investigate to develop such a system? Is it the MS-Graph API or something else?
A pointer in the right direction would be greatly appreciated.
Thanks!
You can use the Graph to create a sharing link to a document. But the user will have to sign in to view the document I believe. I'm not sure what licensing they need but you can try this with your users to see.
https://learn.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http
You can use the Google Docs API to work with documents stored in Google Drive. If you are using Java there is a "Quickstart" at the following link:
https://developers.google.com/docs/api/quickstart/java

How can I let others read and edit a google sheet (not shared with them) using googleapi, without them having to download credential?

I am a beginner trying out api for fun.
The problem is, lets say, I want to write a simple windows program with golang to let my friends read and edit one of the sheets saved on my google drive. How can I do this without having them download a credential file?
What I want it to do is simply redirect them to the Oauth Page right away, and if their email address is one recognized by the app it will grant them access to that google sheet.
What i think you need is to integrate your go app with Oauth protocol.
More specifically, with the Google provider.
This is mainly 3 steps:
add the oauth client to your application
something like this: https://github.com/golang/oauth2
See their docs on how to do it.
go to google dev documentation and see how to integrate google auth flow into the client: https://developers.google.com/identity/protocols/OAuth2
I'm not sure if google has something more specific for google drive integration and/or go-lang client in particular. Please do some searching.
make the glue code on your go app so that the user can interact with this (the login button (or command, if it is terminal based), error messages, logout, etc)
More questions will appear when you start to do this, however it is a great example to learn Oauth as well.
General guidelines:
https all the queries or oauth is basically useless
oatuh has many auth-flows and you must choose which one(s) you support. use whatever google documentation recommends for m2m scenario (machine 2 machine)
log errors so that your friends can send you a log file for you to debug issues
maybe set some feature flag so that you can simply disable this feature to run/test localhost ? maybe useful? you decide.

Google Speech API still supported?

I just tried to register a project for use with the Google Speech API, and I couldn't see the API in the the list when I filtered it for the words "speech" or "voice". Is the API still supported?
I just found the new Web Speech API here Did this take the place of the Speech API v2?
You have to be a member of chromium-dev discussion list before you can enable the Speech API in your Google Developers Console.
Go to Chromium Dev group and click Join the list.
Go back to Google Developers Console, select your project, enter APIs & Auth / APIs. You'll now see Speech API. Click to enable it.
Go to Credentials, Create new Key, Server Key. You may optionally specify a list of IPs, for security.
You now may make queries to Google Speech API v2. Keep in mind that this is an experimental API, and limited to 50 queries per day per project.
Please read this older post..
Answered by #gui-ambros
May this help you a little...

Google Speech Recognition API

I'm trying to use the Google Speech API v2 (at address https://www.google.com/speech-api/v2/recognize?...)
I need to use my Api Key, but when I use it I get error 403 Forbidden
When I use an API key that was on the example project I downloaded it is working fine.
I saw that at the Google Developers Console I can enable a lot of api options, but didn't find any Speech-API option. Is there anything else I need to enable to get access to this API using my key?
Thank you!
Instructions are here : http://www.chromium.org/developers/how-tos/api-keys
!! Do not forget to activate the API "Speech API" in "APIs" under "APIS & AUTH" !!
According to chromium that there is no quota for google speech to text APIs anymore.so you will not found it in your google cloud project console
I am not sure this API is available to everyone, but here is a github project that provides a valid key. You should try with this key.
https://github.com/gillesdemey/google-speech-v2
This is an old post, but hopefully it will help someone.
I couldn't find the Speech API listed under the popular APIs on https://console.developers.google.com/ either. You have to search for the Speech API using the "Search all 100 + APIs" search field.
In order to use the service you need to:
get a developer key (see above answers for instructions)
send a mono flac audio file to http://www.google.com/speech-api/v2/recognize (Google doesn't accept stereo audio anymore)
specify your audio file's sampling rate (e.g. 16000, 44100, etc.) and Content-Type as audio/x-flac in your HTTP header
specify values for key, client and lang parameters in the url
Here is a wget example with full parameters and header:
wget -q --post-file file.flac --header="Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v2/recognize?client=chromium&lang=en_US&key=AIzaSyAcalCzUvPmmJ7CZBFOEWx2Z1ZSn4Vs1gg"
Note that the free service is limited to 50 requests/day for a developer key.
This repository offers a shell script to use the API from the command line (including voice recording).

Resources