Google Calendar API v3 – authenticate with hardcoded credentials

I have found a solution that I think that is “the official” for what you want to do. First, you have to activate a Google API “Client ID for installed applications”. Go to the Google API console and create the project. Then, activate the calendar. Go to the “API access” option, and use the “Create … Read more

How to get national holidays of selected country

Problem solved by using Google Calendar API V3. The idea I found from this post. The holiday can get from default holiday calendar of google. The ID list of default holiday calendar can be found here, support to 40 country. A piece of code that handle permission and get holiday list:- com.google.api.services.calendar.Calendar client = null; … Read more

How Google API V 3.0 .Net library and Google OAuth2 Handling refresh token

Spent the last two days figuring this out myself. The library does not refresh the tokens automatically unless you specify “access_type=offline”. https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth I’m gonna paste the code I’m using and if there is anything you don’t understand, just ask. I have read so many posts and I litteraly got this working right now so there … Read more

Link to add to Google calendar

Here’s an example link you can use to see the format: https://www.google.com/calendar/render?action=TEMPLATE&text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml Note the key query parameters: text dates details location Here’s another example (taken from http://wordpress.org/support/topic/direct-link-to-add-specific-google-calendar-event): <a href=”http://www.google.com/calendar/render? action=TEMPLATE &text=[event-title] &dates=[start-custom format=”Ymd\\THi00\\Z”]/[end-custom format=”Ymd\\THi00\\Z”] &details=Link to add to Google calendar &location=[location] &trp=false &sprop= &sprop=name:” target=”_blank” rel=”nofollow”>Add to my calendar</a> Here’s a form which will help … Read more

403 Error – Thats an error. Error: disallowed_useragent

In my case I was using native web view to login with Google, I find out the way that you should provide user agent to webview it was worked for me. Try below code I am sure it will worked. Add the code in application didFinishLaunchingWithOptions Objective C NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@”Mozilla/5.0 (Windows NT … Read more