Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcal_get_updated_events is not Working #85

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 2 comments
Open

gcal_get_updated_events is not Working #85

GoogleCodeExporter opened this issue Mar 17, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.  Create and event to any date say tomorrow
2. call wing gcal_get_updated_events
3.  it returns nothing

What is the expected output? What do you see instead?
It should get all events which are newly created , modified or deleted

What version of the product are you using? On what operating system?
lates gcal library on fedora 12, 32 bit OS.


I am using Following Code to test the functionality


     /* Create an event 'object' and fill in some data */
        if ((event = gcal_event_new(NULL))) {
                gcal_event_set_title(event, "A new event 2");
                gcal_event_set_content(event, "Here goes the description");
                gcal_event_set_start(event, "2011-08-06T08:00:00.000+05:30");
                gcal_event_set_end(event, "2011-08-06T09:00:00.000+05:30");
                gcal_event_set_where(event, "A nice place for a meeting");            

        }

         struct gcal_event_array event_array;

        /* Add a new event */
        if (!(result = gcal_add_event(gcal, event))) {

                        fprintf(stderr,"Successfully Added Event\n");
                result = gcal_get_updated_events(gcal, &event_array, start);
                if(!result) {
                    size_t _index = 0;
                    int i=0;
                   char *data;
                   for(i=0;i<event_array.length; i++) {
                    event = gcal_event_element (&event_array,  _index);
                    data= gcal_event_get_url(event);
                    fprintf(stderr,"Received URL from Google :: %s\n",data);
                   _index++;
                   }
                }

        }



Original issue reported on code.google.com by [email protected] on 5 Aug 2011 at 6:34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant