Create Event in Google Calendar

189 views
Skip to first unread message

iRunner

unread,
Apr 5, 2012, 6:47:40 AM4/5/12
to google-ca...@googlegroups.com
Hi,
 
I am basucally working in Java and Google Calendar Data api.I want that in my application there should be one botton for Creation of Event and after clicking that it should take User to the Create Event page on Google. So that he can create Event there only. How to do that ?

 

Thanks in Advance

Techie

unread,
Apr 25, 2012, 9:59:46 AM4/25/12
to google-ca...@googlegroups.com
 
It's urgent !!

Sandip Shah

unread,
Apr 25, 2012, 10:58:32 AM4/25/12
to google-ca...@googlegroups.com
There's no "Create Event" page on Google so to say ... everything is done using JavaScript and AJAX.  You'll need to create your own page to accept the data from the user and create the event for the user using the API.

Sandip
vThrive

On Wednesday, April 25, 2012 6:59:46 AM UTC-7, Techie wrote:
 
It's urgent !!

elaw shishir

unread,
Apr 26, 2012, 3:14:22 AM4/26/12
to google-ca...@googlegroups.com
thanks sandip,
My requirment is to retrive 1 month calender data through android project.
I am tring to do with the help of OAuth2.0.
by using key.client_id,client_secret i am getting token now by passing the token want to retrive google calender data.
Is it possible or not?.
Please help.



--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/SUIqmhSPI2kJ.
To post to this group, send email to google-ca...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-calendar-api?hl=en.

Sandip Shah

unread,
Apr 26, 2012, 3:16:49 AM4/26/12
to google-ca...@googlegroups.com
Hi,

It sure is possible - check the other posting that I responded to.

Sandip
vThrive


On Thursday, April 26, 2012 12:14:22 AM UTC-7, elaw shishir wrote:
thanks sandip,
My requirment is to retrive 1 month calender data through android project.
I am tring to do with the help of OAuth2.0.
by using key.client_id,client_secret i am getting token now by passing the token want to retrive google calender data.
Is it possible or not?.
Please help.

On Wed, Apr 25, 2012 at 8:28 PM, Sandip Shah <sandi...@vthrive.com> wrote:
There's no "Create Event" page on Google so to say ... everything is done using JavaScript and AJAX.  You'll need to create your own page to accept the data from the user and create the event for the user using the API.

Sandip
vThrive

On Wednesday, April 25, 2012 6:59:46 AM UTC-7, Techie wrote:
 
It's urgent !!

--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/SUIqmhSPI2kJ.
To post to this group, send email to google-calendar-api@googlegroups.com.
To unsubscribe from this group, send email to google-calendar-api+unsub...@googlegroups.com.

elaw shishir

unread,
Apr 26, 2012, 3:24:59 AM4/26/12
to google-ca...@googlegroups.com
Hello Sandip,

This is my code:
    GoogleAccessProtectedResource requestInitializer =
        new GoogleAccessProtectedResource(
            Auth.getAccessToken(),
            Util.TRANSPORT,
            Util.JSON_FACTORY,
            Auth.CLIENT_ID,
            Auth.CLIENT_SECRET,
            Auth.getRefreshToken());

    plus = new Plus(Util.TRANSPORT, requestInitializer, Util.JSON_FACTORY);

    client = com.google.api.services.calendar.Calendar.builder(TRANSPORT, new JacksonFactory())
     .setApplicationName("SampleGooglePlusAndroidApps")
     .setHttpRequestInitializer(requestInitializer)
     .build(); 


CalendarList feed = client.calendarList().list().execute(); 
System.out.println("feed---------"+feed);
      
using to retrive calender data but getting error as:

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"
}

Using jar file:

google-api-calendar-v3-rev3-java-1.5.0-beta.jar
google-api-client-1.5.0-beta.jar
google-api-client-extensions-android2-1.5.0-beta.jar
google-http-client-1.5.0-beta.jar
google-http-client-extensions-android2-1.5.0-beta.jar
google-http-client-extensions-android3-1.5.0-beta.jar
google-oauth-client-1.5.0-beta.jar
gson-1.7.1.jar
guava-r09.jar
libplus.jar

If i am tring to retrieve Profile detail it is returning profile data.
the code is 
    plus = new Plus(Util.TRANSPORT, requestInitializer, Util.JSON_FACTORY);
      Person profile = plus.people.get("me").execute();

Why the same token not returning calender data.
What i am missing please guide me.

Many Thanks,




To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/nuN62LVeerAJ.

To post to this group, send email to google-ca...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages