|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Member
Iscritto dal: Apr 2003
Messaggi: 282
|
[.NET] API Google Calendar
Ciao a tutti,
qualcuno di voi ha mai provato ad utilizzare le API per il Calendar di Google? Io sono riuscito e leggere il calendario, ma quando provo a leggere gli eventi non riesco ad ottenere le informazioni aggiuntive tipo StartDate, EndDate e Locations. Chi mi puo' aiutare? luigi
__________________
PC:Intel CoreDuo 6400 @ 2.13GHz, MB Asus P5PL2-E, 1 Gb RAM, GeForce8800 GTS 320MB DDR3 MAC:Macbook 13" Aluminium Late 2008, SSD Samsung830 256GB, 4GB RAM |
![]() |
![]() |
![]() |
#2 |
Member
Iscritto dal: Apr 2003
Messaggi: 282
|
Se a qualcuno interessa la risposta è questa:
EventFeed myResultsFeed = myService.Query(myQuery); foreach (Google.GData.Calendar.EventEntry entry2 in myResultsFeed.Entries) { Label1.Text += entry2.Title.Text + "\n"; string strQuando = null; string strDove = null; Google.GData.Extensions.WhenCollection eventTime = entry2.Times; foreach (Google.GData.Extensions.When quando in eventTime) { strQuando = quando.StartTime.Day.ToString() + "/" + quando.StartTime.Month.ToString() + "/" + quando.StartTime.Year.ToString(); strQuando += " " + quando.StartTime.TimeOfDay.Hours.ToString() + ":" + quando.StartTime.TimeOfDay.Minutes.ToString(); } Label1.Text += strQuando; Google.GData.Extensions.WhereCollection eventLocation = entry2.Locations; foreach (Google.GData.Extensions.Where dove in eventLocation) { strDove = dove.ValueString; } Label1.Text += strDove; }
__________________
PC:Intel CoreDuo 6400 @ 2.13GHz, MB Asus P5PL2-E, 1 Gb RAM, GeForce8800 GTS 320MB DDR3 MAC:Macbook 13" Aluminium Late 2008, SSD Samsung830 256GB, 4GB RAM |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:33.