Apps Developer Blog

Information for Google Apps Developers

Calendar API v3, 2-legged OAuth & Java

December 14, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Google Calendar API , Marketplace

8 comments :

Carber said...

Hi, i need to do this, but i'm using .net and csharp !

And i don't understand how to do this for .net from java

Can you explain ? please !

January 15, 2012 at 12:32 PM
Matt Davies said...

I'm going to be starting to port this into ruby if anyone's interested. If anyone has already done this, they could save me some time and post it up :-)

I'll add some error checking and maybe even some tests then, ooooooh!!

January 19, 2012 at 2:08 AM
Seema Khandkar said...

I am migrating from OAuth API 1.0a to OAuth 2.0 and this code is not working for me to access a user's Calendar events. I get GoogleJsonResponseException: 401 Unauthorized. I am using domain consumer key and consumer secret. I also generated an API key from the API console. What is the applicationName? Where can I get that? FYI - I am using google-api-client 1.6.0-beta and google-api-services-calendar v3-1.3.1-beta. Any help would be much appreciated.
Thanks.

January 26, 2012 at 11:31 AM
ozzierod said...

I need this for PHP

May 11, 2012 at 4:40 PM
Tim said...

This has been working for me up until a few months ago, now I get the following error:

Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized
{
"code" : 401,
"errors" : [ {
"domain" : "global",
"location" : "Authorization",
"locationType" : "header",
"message" : "Invalid Credentials",
"reason" : "authError"
} ],
"message" : "Invalid Credentials"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:143)

Who can I contact for help regarding this?

September 4, 2012 at 5:43 PM
Fer said...

Does anybody know if this 2-legged oauth works in write mode to Contact API or Provisioning API?

It seems Google that guys doesn't documented that these APIs are accesible in read-only mode, even using an OAuth domain key :-S

See: this example ,another one or this one.

December 27, 2012 at 10:44 AM
Michał Ziober said...

Hi. I have added linked question to this post. This is a link to the question: http://stackoverflow.com/questions/14852932/list-google-calendar-events-for-different-users

Could you answer on it on StackOverflow or on this service?

Could you help me with that problem?

February 13, 2013 at 4:11 AM
Haithem Gazzah said...

can you give an exemple without using the google-api-client library?
for some reason related to the architectur of our project we can't afford to use google's api library

April 15, 2013 at 7:47 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms