1
votes

wonder if someone has more experience and may give me a little help with this topic. My idea is to build cross platform app in Xamarin. Main request is to retrieve events data from user's google calendar. My quest. here is how to auth this request https://www.googleapis.com/calendar/v3/calendars/calendarId/events.

Should i register both ios/android project in Google API console or can i try with OAuth 2.0? Since i didn't find any example, is this possible with Xamarin forms? Best Regards, Ilija

1

1 Answers

4
votes

The Google Calendar API offers simple HTTP endpoints. You can access those through 100% cross plattform code with the help of HttpClient or Google.Apis.Calendar.v3 Client Library

There is a Quickstart Guide for .NET at: https://developers.google.com/google-apps/calendar/quickstart/dotnet

As far as my knowledge goes: the Google API Console is useful to additionally limit the access (so nobody can take your credentials and use them in an App with a different android package name / iOS bundle identifier)