Goa knows how to talk to a number of different Oauth2 providers using various flavours and varieties of OAuth flow.

Goa library is available with this key.


You just have to specify the service in your oneoff function to set up your credentials, as in the example below, as Goa already knows the parameters for registered services.

Custom service

If you want to use Goa for a service that’s not already known, you can use a custom service instead. A custom credential package for equivalent to example above would look like this, where the service is set to “custom” and serviceParameters contains information describing how to make the OAuth flow.


These are the services currently known by Goa. (To check the latest version of this you can use Logger.log (JSON.stringify(cGoa.Service.package));)

Not all properties are required for each service as each implementation has its own little foible. Any trouble with implementing new ones – let me know. If you create a custom flow and would like it included in Goa (and make it available to all), then ping me and I’ll add it to service list.

For more like this, see Google Apps Scripts Snippets
Why not join our forum, follow the blog or follow me on twitter to ensure you get updates when they are available.