You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using this peace of code to get all events of my calender, but i always get
-1 result when calling gcal_get_events, the weird thing is that i have two
google accounts, and this works for one of them and not for the other.
/* Create a gcal 'object' and authenticate with server */
if (!(gcal = gcal_new(GCALENDAR)))
exit(1);
if (argc == 3)
result = gcal_get_authentication(gcal, argv[1], argv[2]);
else
result = gcal_get_authentication(gcal, (char*)"user", (char*)"password");
if (result!=0){
printf("AUTHENTICATION - ERROR (HTTP code: %d | msg: %s) - result=%d.\n", gcal_status_httpcode(gcal),gcal_status_msg(gcal),result);
return -1;
}
printf("AUTHENTICATION: OK\n");
result = gcal_get_events(gcal, &all_events);
if (result!=0){
printf("GET EVENTS - ERROR (HTTP code: %d | msg: %s) - result=%d.\n", gcal_status_httpcode(gcal),gcal_status_msg(gcal),result);
return -1;
}
Original issue reported on code.google.com by [email protected] on 6 Aug 2012 at 11:44
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Aug 2012 at 11:44The text was updated successfully, but these errors were encountered: