Re: [caldav4j] Yahoo Calender sync using Caldav

73 views
Skip to first unread message

Roberto Polli

unread,
Feb 25, 2013, 4:56:16 AM2/25/13
to cald...@googlegroups.com
2013/2/25 Faison N.P <faison...@gmail.com>:
> Hi ,
> how to get the calendar list from yahoo server . i have 2 calendar
> associated with my account , but i cant get its name .
You can check if Yahoo caldav server supports a PRINCIPAL query.

Let us know + Peace,
R:

Faison N.P

unread,
Feb 28, 2013, 7:10:18 AM2/28/13
to cald...@googlegroups.com
How can i check that ? If yes what can i do with PRINCIPAL query ?

am newbie to this.. please help me.


On Monday, 25 February 2013 10:54:23 UTC+5:30, Faison N.P wrote:
Hi , 
how to get the calendar list from yahoo server . i have 2 calendar associated with my account , but i cant get its name . 


please help 

Roberto Polli

unread,
Feb 28, 2013, 7:24:15 AM2/28/13
to cald...@googlegroups.com
2013/2/28 Faison N.P <faison...@gmail.com>:
> How can i check that ? If yes what can i do with PRINCIPAL query ?
You can find information about finding calendars here
https://tools.ietf.org/html/rfc4791#section-8.4

Yahoo should reply with a list of existing calendars.

Let me know + Peace,
R.

Faison N.P

unread,
Feb 28, 2013, 8:42:53 AM2/28/13
to cald...@googlegroups.com
Thanks for the reply.

can u please help me to create a query.

<?xml version="1.0" encoding="utf-8" ?>
   <D:principal-match xmlns:D="DAV:">
     <D:self/>
     <D:prop>
       <C:calendar-home-set
          xmlns:C="urn:ietf:params:xml:ns:caldav"/>
     </D:prop>
   </D:principal-match>

:)

Faison N.P

unread,
Mar 1, 2013, 5:27:01 AM3/1/13
to cald...@googlegroups.com
Hi Roberto Polli

I didnt find the Principal query in Caldav4j for android source code. Then how can i possible ? is there any another methods to create a query ? 

Roberto Polli

unread,
Mar 1, 2013, 5:41:44 AM3/1/13
to cald...@googlegroups.com
2013/3/1 Faison N.P <faison...@gmail.com>:
> I didn't find the Principal query in Caldav4j for android source code.
caldav4j doesn't implement that query.

>is there any another methods to create a query ?
you should create a REPORT query using the underlying HttpClient
methods because this query type is still not implemented.

There's a template in ./model/report.mycalendars.xml (the one you pasted)

You can use curl to check if yahoo support that kind of request before!

Here's a small example: replace the required fields!
https://blogs.oracle.com/arnaudq/entry/propfind_using_curl

Peace,
R:
Reply all
Reply to author
Forward
0 new messages