COMMUNITY

Haxe node and the gmail api

nodejs

(Tom Rhodes) #1

Hi,

Has anyone done anything with the gmail API using nodeJS? I played with it about a year ago not in haxe and got the quickstart going, but I’ve just been trying again and the code in the docs doesn’t work for node. Just wondering if anyone was authenticating with google using haxe and node? If so how?

Cheers,

Tom.


(Kevin Leung) #2

I worked with Google API a while ago, (the Google Sheet API to be specific). I guess the authentication process should be the same across all Google API. So my experience should work for you.

Basically you need to get a token from the Google authentication endpoint and include it along with your API requests.


(Tom Rhodes) #3

Awesome, thanks I’ll have a look later, I’d resorted to doing the gmail stuff on the client and passing what I needed to the server to work on, when I wanted to do everything on the server if poss and skip a step…