From the Google Developer Console (https://console.developers.google.com/ ) we have created new prioject and then new ones credentials for authentication / authorization process, and we activated the API.

Reading from the Google Documentation we chose credentials of application type "Other", this work fine for Google Calendar API, but when we add the scope for Gmail API to constant paramenters, Google returns a Json containing "invalid_scope" message: to interact with Google we used a cURL script.

We have also tried to use credentials of application type "Web Application", but these do not seem to work with FM.

We'd like to know if we can integrate Gmail API within the FM using credentials of application type "Other", or know if this can be possible using credentials of application type "Web Application", or other ideas?