cancel
Showing results for 
Search instead for 
Did you mean: 

Login Ticket....

jeethendra
Champ in-the-making
Champ in-the-making
How to get the login Ticket for the alfresco share ….
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
You shouldn't need it if you're accessing the repository through the proxy servlet.

What's your use case?

Mike

jeethendra
Champ in-the-making
Champ in-the-making
Thanks for ur reply Mike…

I am very much new to the Alfresco..But let me explain u what i am doing ..
I am working on Icalender part of the alfresco share, where from my application i'll be passing the events to the Icalender ….
so the generated .ics file can be downloaded to the Iphone's…  this is what i need to do… So how to go on with this now.

So initially i need to create a site … in that i need to create a calendar container (is this a ordinary container that can be created using createContainer() API or is this a different one)….also provide  me with some Icalendar API's

thanks
jeethendra

mikeh
Star Contributor
Star Contributor
Yes, the calendar space is a regular space.

For the API, please see this page: http://localhost:8080/alfresco/service/index/package/org/alfresco/slingshot/calendar

If you want to talk directly to the Repository API, you can obtain a ticket using: http://wiki.alfresco.com/wiki/2.1_REST_API#Login


Thanks,
Mike

jeethendra
Champ in-the-making
Champ in-the-making
from my application i am calling the event webscript….
/calendar/create?what={whatEvent}&where={whereEvent}&desc={descriptionEvent}&from={fromDate}&start={startTime}&to={toDate}&end={endTime}&site={siteId}

and i am passing the required parameters….
Example:http://localhost:8080/alfresco/service/calendar/create?what=kjkjwhatEvent&where=kdjfkjdk&desc=jfkfjk..."

but i am getting an exception…..please any one reply me

mikeh
Star Contributor
Star Contributor
It's always useful to actually post the exception, rather than just saying "I am getting an exception"…

Having said that, I suspect you're getting "405 Method Not Allowed" because you're sending a GET request rather than a POST one. I admit the URI description on that particular API is confusing - I'll get the parameters removed.

So you need to POST to the "create" web script with JSON-encoded parameters, e.g.
{"desc": "theDescription",
"end": "13:00",
"from": "Tuesday, 10 February 2009",
"page": "calendar",
"site": "site1",
"start": "12:00",
"to": "Tuesday, 10 February 2009",
"what": "theWhat",
"where": "theWhere"}
(linefeeds added for clarity)

Thanks,
Mike

jeethendra
Champ in-the-making
Champ in-the-making
Thanks for your reply Mike..

Now i am able to create a calendar event…but now  another problem has occured..
After creating an event,i download the *.ics file to my desktop and tried to open with Microsoft Outlook  its giving the message "The *.ics is not a valid internet file"(it says 0kb)….

Even i created an calendar event from the share GUI.. and downloaded that particular *.ics file and tried to open with the MS outlook.. its giving the same message…."The *.ics is not a valid internet file"……

When i try to see some sample *ics files from the web, it reads like this.

BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20090211T090000
DTEND:20100312T100000
LOCATION;ENCODING=QUOTED-PRINTABLE:bangalore
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:test description
SUMMARY;ENCODING=QUOTED-PRINTABLE:temp
PRIORITY:3
END:VEVENT
END:VCALENDAR

Now I can open this file in MS Outlook..

So how would i get this kind of content in my *.ics file when it gets generated using my webscript?

Thanks,
Jeethendra