[Google Core] How to use GetAccessToken

Forge Component
(4)
Published on 2017-07-07 by Labs
4 votes
Published on 2017-07-07 by Labs

Hey guys!

Thank you so much for creating this plugin. I've managed to get Google login working with the Google Login Plugin. I'm trying to access google calendar api for https://developers.google.com/calendar/v3/reference/events/list


I've been trying to use the GetAccessToken method but i'm not sure what to put for the ClientSecret Input because the ClientID i generated for Android doesn't have a client secret. This is the first client ID


I also have a web clientID which has a client secret but it returns an error of

I've tried looking at the Employee App Template for examples on Google API calls but I cannot find any.

Would be great if anyone who has used a Google API could provide a sample beyond just google login

Thanks so much.

Best,

Barnett

Barnett Lee wrote:

Hey guys!

Thank you so much for creating this plugin. I've managed to get Google login working with the Google Login Plugin. I'm trying to access google calendar api for https://developers.google.com/calendar/v3/reference/events/list


I've been trying to use the GetAccessToken method but i'm not sure what to put for the ClientSecret Input because the ClientID i generated for Android doesn't have a client secret. This is the first client ID


I also have a web clientID which has a client secret but it returns an error of

I've tried looking at the Employee App Template for examples on Google API calls but I cannot find any.

Would be great if anyone who has used a Google API could provide a sample beyond just google login

Thanks so much.

Best,

Barnett

Hi Barnett,


In this excercise there is a step by step description on how to get the secret code, maybe this helps you as well? 


https://www.outsystems.com/learn/lesson/1839/integrating-with-oauth-exercise/ 


Best wishes,


Khadija