passport-google-oauth2 vs passport-google-oauth20 packages - node.js

These 2 packages look very similar:
http://www.passportjs.org/packages/passport-google-oauth2/
http://www.passportjs.org/packages/passport-google-oauth20/
Is one supersede the other or they serve different purpose? New to Google authentication and still trying to make it work.

passport-google-oauth20 has 10x the use of the other, and it has more recent commits.
One of the properties in the profile response for passport-google-oauth2 is isPlusUser, which suggests that it is not up to date. The readme in the github repository does not match the documentation, and there are a few links in the passport docs that no longer work.
To be fair, I've only ever used passport-google-oauth20. It's possible that pass-port-google-oauth2 works fine, but there is currently a lot more community support for 20.
Hope this helps!

I have the same question. It is pretty confusing. One is much more popular than the other. https://www.npmtrends.com/passport-google-oauth2-vs-passport-google-oauth20
Google is using passport-google-oauth20 in their Node tutorial examples. https://cloud.google.com/nodejs/getting-started/tutorial-app

Related

Does node js have a good library for speech-to-text?

Im working on a project in which the main feature of the project is voice recognition. Th e backend is developed in node, express, and mongo DB, and the frontend is in react-native. I have made a lot of research and tried a lot of examples trying to implement this feature in my application, but I couldn't find any.
I started looking for react-native libraries that might cover this feature, and I did find https://github.com/react-native-voice/voice
I tried to implement it in my project, but I got stuck with an error which is an open issue: https://github.com/react-native-voice/voice/issues/376
I also tried to find other libraries but they weren't good ones. Most of them were developed years ago and never updated.
So I thought to solve this feature in the backend.
I made a lot of research as well, and find a few libraries for speech-to-text, but their documentation wasn't enough, very few tutorials, and not a strong source code to support this feature.
So by far, I am to the conclusion that Node.js and React-native cannot support this feature.
The reason I choose to ask in StackOverflow is to make sure if my conclusion is right(to not waste time trying other libraries), and if it is right, should I try to implement these features by using another programming language(ex: Python), and if my conclusion is wrong, please feel free to share any documentation or solution about this feature.

Google Adwords and Node.js: library or different way to access API?

Is there a node.js library for google adwords? Or what is the current recommended way to access Adwords from node.js?
There's this question/answer. I guess this is not up-to-date?
As I can see no js-library here, I assume, I should use something else...
There is no official library written in JS or Node.Js.
You can search on https://npmjs.com for a package provided by the community.
This one looks to be the most advanced (full features) and up-to-date (last revision was some hours ago). There is no issue opened and npmjs says that it is quite dowloaded often (300/month), so I would go for it.

Node.js Twitter library that supports update_with_media

None of the libraries I have tried support update_with_media for posting images:
twit
node-twitter-api
node-twitter
All of these libraries claim to implement this functionality, which is very worrying.
If anyone is currently running software that is doing this, please reply. I am not interested in URL's linking to software that claims to support this feature.
I was searching for same thing for a while with little success.
So I decided to make my own which turned out to be short and sweet:
https://gist.github.com/adaline/7363853
All the instructions are in the gist :)
I modified #Val's gist to support files from remote url's (i.e. s3) rather than reading it from a file. Thought I'd share in case it's useful to others. https://gist.github.com/travischoma/9279105

Any libraries that can make accessing Google APIs as a service account simpler for NodeJS?

Background: My idea is to create a primarily content-heavy website (think news articles or blog posts) written entirely in nodejs. Since creating content on Google Drive (Google Docs) in particular is very simple, what I would like to do is have Nodejs retrieve the website's content from Google Docs.
Challenge: As far as I can tell, the correct way to do this according to Google is to create a Service Account so that the application can access the files stored on Google Drive without requiring user-intervention in the form of a confirmation. Google provides three libraries--java, python, and php--for server-to-server requests. Does anyone know of anything similar already written by the Node community? I am aware of node-oauth but I've searched through it's source and haven't found anything referencing private keys, which are required for server-to-server interaction, which I'm taking to mean it's not supported. Writing one is also an option, but I'd like to avoid that if at all possible. Looking at the Google-written Java Oauth2 client library makes it pretty clear that it's not an easy task.
Thanks in advance!
This is one library I've found that looks pretty thorough and complete for creating JSON Web Tokens: JWCrypto
I know this thread is old, but in the event others arrive here looking for an answer:
Google is working on an official module to access all of their API's. Its alpha so be careful but it looks very nice- github repository

Getting started with Gmail Plugin development

I would like to get into Plugin development using the Gmail API and as such I would like to ask those who already have experience in it a few questions.
What language / languages should I be familiar with? I'm not familiar with Python, PHP, or JavaScript. Will I need to pick up on these?
What level of control do I have on what my plugin can do? Can I for example change the interface or add shortcuts or RSS feeds as a sidebar?
I know a lot of the examples mentioned already exist but I would like to try my own hand at it.
Peter posted a solid list of the official Gmail APIs.
On the other hand, most of the major plugins that you may have heard about are browser plugins that just modify the page source directly, even though there's no official API for it. There used to be a GreaseMonkey API that was a good starting point, but that wasn't supported and no longer works. Best place to start is with a copy of Chrome, creating a content-injection plugin that works on the Gmail page.
Happy to provide some further details if you can clarify what you're going for since I went through this myself a few months back.

Resources