Done, documentation is updated
On 15 October 2014 22:34, Dario Guida <[email protected]>
wrote:
> Sure… this is full Example in java :
>
>
>
>
>
> Calendar start = Calendar.*getInstance*();
>
> start.set(2014, Calendar.*OCTOBER*, 31);
>
> start.setTimeInMillis(start.getTimeInMillis() +
> 600000);
>
>
>
> Calendar end = Calendar.*getInstance*();
>
> end.set(2014, Calendar.*OCTOBER*, 31);
>
> end.setTimeInMillis(start.getTimeInMillis() +
> 1200000);
>
>
>
> Date eventStart = start.getTime();
>
> Date eventEnd = end.getTime();
>
>
>
> String appointmentName = URLEncoder.*encode*("evento
> creato da WebService", encodeType);
>
> String appointmentLocation = URLEncoder.*encode*("Ufficio
> 7", encodeType);
>
> String appointmentDescription =
> URLEncoder.*encode*("descrizione
> evento creato di prova", encodeType);
>
> String appointmentstart = URLEncoder.*encode*(*this*.
> dateFormat.format(eventStart),encodeType);
>
> String appointmentend = URLEncoder.*encode*(*this*.
> dateFormat.format(eventEnd),encodeType);
>
> Boolean isDaily = *true*;
>
> Boolean isWeekly = *false*;
>
> Boolean isMonthly = *false*;
>
> Boolean isYearly = *false*;
>
> String categoryId = "1";
>
> String remind = "1";
>
> String mmClient = URLEncoder.*encode*("'1,renato,renato,
> [email protected],3,Etc/GMT+1'",encodeType);
>
> String roomType = "1";
>
> String languageId = *this*.languageId;
>
> Boolean isPasswordProtected = *true*;
>
> String password = "prova";
>
> String roomId = idRoom.toString();
>
>
>
> String parameter1="saveAppointment?"+
>
> "SID="+sessionId+
>
> "&appointmentName="+
> appointmentName+
>
> "&appointmentLocation="+
> appointmentLocation+
>
>
> "&appointmentDescription="+appointmentDescription+
>
> "&appointmentstart="+
> appointmentstart+
>
> "&appointmentend="+
> appointmentend+
>
> "&isDaily="+isDaily+
>
> "&isWeekly="+isWeekly+
>
> "&isMonthly="+isMonthly+
>
> "&isYearly="+isYearly+
>
> "&categoryId="+categoryId+
>
> "&remind="+remind+
>
> "&roomType="+roomType+
>
> "&languageId="+languageId+
>
> "&isPasswordProtected="+
> isPasswordProtected+
>
> "&password="+password+
>
> "&roomId="+roomId+
>
> "&mmClient="+mmClient;
>
>
>
>
>
> WHERE :
>
> sessionId : is the session id of an administrator user logged in (service
> calls : *getSession* and *loginUser*)
>
> roomId : is the id of a room (in my case with service call
> *addRoomWithModeration)*
>
>
>
> *The full Request is :*
>
> *http://localhost/openmeetings/services/CalendarService/saveAppointment?SID=7661de295d0d46346731555fec4cf75b&appointmentName=evento+creato+da+WebService&appointmentLocation=Ufficio+7&appointmentDescription=descrizione+evento+creato+di+prova&appointmentstart=2014-10-31T17%3A43%3A11&appointmentend=2014-10-31T18%3A03%3A11&isDaily=true&isWeekly=false&isMonthly=false&isYearly=false&categoryId=1&remind=1&roomType=1&languageId=5&isPasswordProtected=true&password=prova&roomId=96&mmClient=%271%2Crenato%2Crenato%2Cmail%40hotmail.it%2C3%2CEtc%2FGMT%2B1%27
> <http://localhost/openmeetings/services/CalendarService/saveAppointment?SID=7661de295d0d46346731555fec4cf75b&appointmentName=evento+creato+da+WebService&appointmentLocation=Ufficio+7&appointmentDescription=descrizione+evento+creato+di+prova&appointmentstart=2014-10-31T17%3A43%3A11&appointmentend=2014-10-31T18%3A03%3A11&isDaily=true&isWeekly=false&isMonthly=false&isYearly=false&categoryId=1&remind=1&roomType=1&languageId=5&isPasswordProtected=true&password=prova&roomId=96&mmClient=%271%2Crenato%2Crenato%2Cmail%40hotmail.it%2C3%2CEtc%2FGMT%2B1%27>*
>
>
>
>
>
> *Bye bye.*
>
>
>
>
>
>
>
>
>
> *Da:* Maxim Solodovnik [mailto:[email protected]]
> *Inviato:* mercoledì 15 ottobre 2014 17:15
> *A:* Openmeetings user-list
> *Oggetto:* Re: saveAppointement CalendaService Problem
>
>
>
> Could yo point to the example you have followed, so I can update it with
> the solution?
>
>
>
> On 15 October 2014 22:13, Dario Guida <[email protected]>
> wrote:
>
> Thank you!!
>
>
>
> Singole quote is the solution
>
>
>
> *Da:* Abhishek Yadav [mailto:[email protected]]
> *Inviato:* mercoledì 15 ottobre 2014 13:09
> *A:* Openmeetings user-list
> *Oggetto:* Re: saveAppointement CalendaService Problem
>
>
>
> Hello Dario,
>
>
>
> * &mmClient='1,firstname,lastname,hans [email protected],1,Etc/GMT+1
> <[email protected],1,Etc/GMT+1>'*
>
>
>
> Use like this it will work(add single quote) (in OM 3.0.x versions, it is
> accepting with single quote).
>
>
>
> Try this and try with without URL encode (Because i am using without URL
> encode, it is working fine)..may be it will help you.
>
>
>
>
>
>
>
> Regards,
>
> Abhishek
>
>
>
>
>
>
>
> On Wed, Oct 15, 2014 at 4:29 PM, Dario Guida <
> [email protected]> wrote:
>
> Hi,
>
> When I use rest webService CalendarService/ saveAppointement I have a
> issue when I insert mmclient through the parameters;
>
>
>
> I follow the example : &mmClient=1,firstname,lastname,hans
> [email protected],1,Etc/GMT+1
>
>
>
> With this : String mmClient = URLEncoder.encode("1,renato,renato,
> [email protected],1,Etc/GMT+1",encodeType);
>
>
>
> Results : mmClient=1%2Crenato%2Crenato%2Cmail%40hotmail.it
> %2C1%2CEtc%2FGMT%2B1
>
>
>
>
> http://localhost/openmeetings/services/CalendarService/saveAppointment?SID=2bf81cbfdfd71181394ef3d58cbc4e48&appointmentName=evento+creato+da+WebService&appointmentLocation=Ufficio+7&appointmentDescription=descrizione+evento+creato+di+prova&appointmentstart=2014-10-27T13%3A06%3A16&appointmentend=2014-10-27T13%3A26%3A16&isDaily=true&isWeekly=false&isMonthly=false&isYearly=false&categoryId=1&remind=1&roomType=1&languageId=5&isPasswordProtected=true&password=prova&roomId=84&mmClient=1%2Crenato%2Crenato%2C
> mail%40hotmail.it%2C1%2CEtc%2FGMT%2B1
>
>
>
> If I delete the mmClient parameter the appointement is created, when I add
> mmClient parameter the service retun nil and the appointement is not
> created.
>
>
>
> I don’t understand where is the error in the parameter mmClient
>
>
>
> Thanks to all
>
>
>
>
>
>
>
>
>
>
>
> --
> WBR
> Maxim aka solomax
>
--
WBR
Maxim aka solomax