You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Dario Guida <pr...@infotelsistemi.com> on 2014/10/15 12:59:29 UTC

saveAppointement CalendaService Problem

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
.tier@gmail.com,1,Etc/GMT+1

 

With this : String mmClient =
URLEncoder.encode("1,renato,renato,mail@hotmail.it,1,Etc/GMT+1",encodeType);

 

Results :
mmClient=1%2Crenato%2Crenato%2Cmail%40hotmail.it%2C1%2CEtc%2FGMT%2B1

 

http://localhost/openmeetings/services/CalendarService/saveAppointment?SID=2
bf81cbfdfd71181394ef3d58cbc4e48&appointmentName=evento+creato+da+WebService&
appointmentLocation=Ufficio+7&appointmentDescription=descrizione+evento+crea
to+di+prova&appointmentstart=2014-10-27T13%3A06%3A16&appointmentend=2014-10-
27T13%3A26%3A16&isDaily=true&isWeekly=false&isMonthly=false&isYearly=false&c
ategoryId=1&remind=1&roomType=1&languageId=5&isPasswordProtected=true&passwo
rd=prova&roomId=84&mmClient=1%2Crenato%2Crenato%2Cmail%40hotmail.it%2C1%2CEt
c%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

 

 


Re: saveAppointement CalendaService Problem

Posted by Maxim Solodovnik <so...@gmail.com>.
I guess you can use getUserList (not very efficient to loop everytime, but
the task seems to be specific :( )

On 17 October 2014 02:24, César M. Sandrigo <cm...@gmail.com> wrote:

> Thank you Maxim!
>
> Is there a way to get the OM User ID having username? No method of
> UserService seems to give that information.
>
> 2014-10-16 15:57 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
> > Unfortunately you can found nothing about it in documentation :(
> >
> > According to the code
> > 1*,firstname,lastname,hans.tier@gmail.com,1**,Etc/GMT+1
> >
> > 1* == MeetingMemberId in OM DB (better to set to something meaningless
> i.e
> > "0")
> > firstname == first name of meeting attendee
> > lastname == last name of meeting attendee
> > hans.tier@gmail.com == email of meeting attendee
> > 1** == OM user Id (should be set to something meaningless in case non OM
> > user is being send)
> > Etc/GMT+1 == timezone
> >
> > the logic then:
> > If 1* is existing MeetingMemberId in OM DB stop parsing and get it
> > otherwise
> > if 1** is existing OM user ID stop parsing and get it
> > otherwise
> > create Meeting member from first/last/email/timezone
> >
> > On 17 October 2014 01:37, César M. Sandrigo <cm...@gmail.com>
> wrote:
> >>
> >> By the way,  where I find this documentation?
> >>
> >> I'm just trying to find what mean every value in the mmClient
> >> parameter. I'm curretly using the API documentation
> >> (https://openmeetings.apache.org/openmeetings-webservice/apidocs/). Is
> >> there another page with more documentation?
> >>
> >> Thanks.
> >>
> >> 2014-10-16 2:13 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
> >> > Done, documentation is updated
> >> >
> >> > On 15 October 2014 22:34, Dario Guida <
> produzionedg@infotelsistemi.com>
> >> > 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,mail@hotmail.it
> ,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
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Bye bye.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Da: Maxim Solodovnik [mailto:solomax666@gmail.com]
> >> >> 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 <
> produzionedg@infotelsistemi.com>
> >> >> wrote:
> >> >>
> >> >> Thank you!!
> >> >>
> >> >>
> >> >>
> >> >> Singole quote is the solution
> >> >>
> >> >>
> >> >>
> >> >> Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
> >> >> Inviato: mercoledì 15 ottobre 2014 13:09
> >> >> A: Openmeetings user-list
> >> >> Oggetto: Re: saveAppointement CalendaService Problem
> >> >>
> >> >>
> >> >>
> >> >> Hello Dario,
> >> >>
> >> >>
> >> >>
> >> >>  &mmClient='1,firstname,lastname,hans .tier@gmail.com,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
> >> >> <pr...@infotelsistemi.com> 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
> >> >> .tier@gmail.com,1,Etc/GMT+1
> >> >>
> >> >>
> >> >>
> >> >> With this : String mmClient =
> >> >>
> >> >> URLEncoder.encode("1,renato,renato,mail@hotmail.it
> ,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%2Cmail%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
> >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Re: saveAppointement CalendaService Problem

Posted by "César M. Sandrigo" <cm...@gmail.com>.
Thank you Maxim!

Is there a way to get the OM User ID having username? No method of
UserService seems to give that information.

2014-10-16 15:57 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
> Unfortunately you can found nothing about it in documentation :(
>
> According to the code
> 1*,firstname,lastname,hans.tier@gmail.com,1**,Etc/GMT+1
>
> 1* == MeetingMemberId in OM DB (better to set to something meaningless i.e
> "0")
> firstname == first name of meeting attendee
> lastname == last name of meeting attendee
> hans.tier@gmail.com == email of meeting attendee
> 1** == OM user Id (should be set to something meaningless in case non OM
> user is being send)
> Etc/GMT+1 == timezone
>
> the logic then:
> If 1* is existing MeetingMemberId in OM DB stop parsing and get it
> otherwise
> if 1** is existing OM user ID stop parsing and get it
> otherwise
> create Meeting member from first/last/email/timezone
>
> On 17 October 2014 01:37, César M. Sandrigo <cm...@gmail.com> wrote:
>>
>> By the way,  where I find this documentation?
>>
>> I'm just trying to find what mean every value in the mmClient
>> parameter. I'm curretly using the API documentation
>> (https://openmeetings.apache.org/openmeetings-webservice/apidocs/). Is
>> there another page with more documentation?
>>
>> Thanks.
>>
>> 2014-10-16 2:13 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
>> > Done, documentation is updated
>> >
>> > On 15 October 2014 22:34, Dario Guida <pr...@infotelsistemi.com>
>> > 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,mail@hotmail.it,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
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Bye bye.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Da: Maxim Solodovnik [mailto:solomax666@gmail.com]
>> >> 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 <pr...@infotelsistemi.com>
>> >> wrote:
>> >>
>> >> Thank you!!
>> >>
>> >>
>> >>
>> >> Singole quote is the solution
>> >>
>> >>
>> >>
>> >> Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
>> >> Inviato: mercoledì 15 ottobre 2014 13:09
>> >> A: Openmeetings user-list
>> >> Oggetto: Re: saveAppointement CalendaService Problem
>> >>
>> >>
>> >>
>> >> Hello Dario,
>> >>
>> >>
>> >>
>> >>  &mmClient='1,firstname,lastname,hans .tier@gmail.com,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
>> >> <pr...@infotelsistemi.com> 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
>> >> .tier@gmail.com,1,Etc/GMT+1
>> >>
>> >>
>> >>
>> >> With this : String mmClient =
>> >>
>> >> URLEncoder.encode("1,renato,renato,mail@hotmail.it,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%2Cmail%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
>
>
>
>
> --
> WBR
> Maxim aka solomax

Re: saveAppointement CalendaService Problem

Posted by Maxim Solodovnik <so...@gmail.com>.
Unfortunately you can found nothing about it in documentation :(

According to the code
1*,firstname,lastname,hans.tier@gmail.com,1**,Etc/GMT+1

1* == MeetingMemberId in OM DB (better to set to something meaningless i.e
"0")
firstname == first name of meeting attendee
lastname == last name of meeting attendee
hans.tier@gmail.com == email of meeting attendee
1** == OM user Id (should be set to something meaningless in case non OM
user is being send)
Etc/GMT+1 == timezone

the logic then:
If 1* is existing MeetingMemberId in OM DB stop parsing and get it
otherwise
if 1** is existing OM user ID stop parsing and get it
otherwise
create Meeting member from first/last/email/timezone

On 17 October 2014 01:37, César M. Sandrigo <cm...@gmail.com> wrote:

> By the way,  where I find this documentation?
>
> I'm just trying to find what mean every value in the mmClient
> parameter. I'm curretly using the API documentation
> (https://openmeetings.apache.org/openmeetings-webservice/apidocs/). Is
> there another page with more documentation?
>
> Thanks.
>
> 2014-10-16 2:13 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
> > Done, documentation is updated
> >
> > On 15 October 2014 22:34, Dario Guida <pr...@infotelsistemi.com>
> > 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,mail@hotmail.it
> ,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
> >>
> >>
> >>
> >>
> >>
> >> Bye bye.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Da: Maxim Solodovnik [mailto:solomax666@gmail.com]
> >> 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 <pr...@infotelsistemi.com>
> >> wrote:
> >>
> >> Thank you!!
> >>
> >>
> >>
> >> Singole quote is the solution
> >>
> >>
> >>
> >> Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
> >> Inviato: mercoledì 15 ottobre 2014 13:09
> >> A: Openmeetings user-list
> >> Oggetto: Re: saveAppointement CalendaService Problem
> >>
> >>
> >>
> >> Hello Dario,
> >>
> >>
> >>
> >>  &mmClient='1,firstname,lastname,hans .tier@gmail.com,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
> >> <pr...@infotelsistemi.com> 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
> >> .tier@gmail.com,1,Etc/GMT+1
> >>
> >>
> >>
> >> With this : String mmClient =
> >> URLEncoder.encode("1,renato,renato,mail@hotmail.it
> ,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%2Cmail%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
>



-- 
WBR
Maxim aka solomax

Re: saveAppointement CalendaService Problem

Posted by "César M. Sandrigo" <cm...@gmail.com>.
By the way,  where I find this documentation?

I'm just trying to find what mean every value in the mmClient
parameter. I'm curretly using the API documentation
(https://openmeetings.apache.org/openmeetings-webservice/apidocs/). Is
there another page with more documentation?

Thanks.

2014-10-16 2:13 GMT-03:00 Maxim Solodovnik <so...@gmail.com>:
> Done, documentation is updated
>
> On 15 October 2014 22:34, Dario Guida <pr...@infotelsistemi.com>
> 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,mail@hotmail.it,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
>>
>>
>>
>>
>>
>> Bye bye.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Da: Maxim Solodovnik [mailto:solomax666@gmail.com]
>> 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 <pr...@infotelsistemi.com>
>> wrote:
>>
>> Thank you!!
>>
>>
>>
>> Singole quote is the solution
>>
>>
>>
>> Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
>> Inviato: mercoledì 15 ottobre 2014 13:09
>> A: Openmeetings user-list
>> Oggetto: Re: saveAppointement CalendaService Problem
>>
>>
>>
>> Hello Dario,
>>
>>
>>
>>  &mmClient='1,firstname,lastname,hans .tier@gmail.com,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
>> <pr...@infotelsistemi.com> 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
>> .tier@gmail.com,1,Etc/GMT+1
>>
>>
>>
>> With this : String mmClient =
>> URLEncoder.encode("1,renato,renato,mail@hotmail.it,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%2Cmail%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

Re: saveAppointement CalendaService Problem

Posted by Maxim Solodovnik <so...@gmail.com>.
Done, documentation is updated

On 15 October 2014 22:34, Dario Guida <pr...@infotelsistemi.com>
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,
> mail@hotmail.it,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:solomax666@gmail.com]
> *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 <pr...@infotelsistemi.com>
> wrote:
>
> Thank you!!
>
>
>
> Singole quote is the solution
>
>
>
> *Da:* Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
> *Inviato:* mercoledì 15 ottobre 2014 13:09
> *A:* Openmeetings user-list
> *Oggetto:* Re: saveAppointement CalendaService Problem
>
>
>
> Hello Dario,
>
>
>
> * &mmClient='1,firstname,lastname,hans .tier@gmail.com,1,Etc/GMT+1
> <.tier@gmail.com,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 <
> produzionedg@infotelsistemi.com> 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
> .tier@gmail.com,1,Etc/GMT+1
>
>
>
> With this : String mmClient = URLEncoder.encode("1,renato,renato,
> mail@hotmail.it,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

R: saveAppointement CalendaService Problem

Posted by Dario Guida <pr...@infotelsistemi.com>.
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,mail@hotmail.it,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

 

 

Bye bye.

 

 

 

 

Da: Maxim Solodovnik [mailto:solomax666@gmail.com] 
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 <pr...@infotelsistemi.com> wrote:

Thank you!!

 

Singole quote is the solution

 

Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in] 
Inviato: mercoledì 15 ottobre 2014 13:09
A: Openmeetings user-list
Oggetto: Re: saveAppointement CalendaService Problem

 

Hello Dario,

 

 &mmClient='1,firstname,lastname,hans  <mailto:.tier@gmail.com,1,Etc/GMT+1> .tier@gmail.com,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 <pr...@infotelsistemi.com> 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 .tier@gmail.com,1,Etc/GMT+1

 

With this : String mmClient = URLEncoder.encode("1,renato,renato,mail@hotmail.it,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%2Cmail%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 


Re: saveAppointement CalendaService Problem

Posted by Maxim Solodovnik <so...@gmail.com>.
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 <pr...@infotelsistemi.com>
wrote:

> Thank you!!
>
>
>
> Singole quote is the solution
>
>
>
> *Da:* Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in]
> *Inviato:* mercoledì 15 ottobre 2014 13:09
> *A:* Openmeetings user-list
> *Oggetto:* Re: saveAppointement CalendaService Problem
>
>
>
> Hello Dario,
>
>
>
> * &mmClient='1,firstname,lastname,hans .tier@gmail.com,1,Etc/GMT+1
> <.tier@gmail.com,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 <
> produzionedg@infotelsistemi.com> 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
> .tier@gmail.com,1,Etc/GMT+1
>
>
>
> With this : String mmClient = URLEncoder.encode("1,renato,renato,
> mail@hotmail.it,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

R: saveAppointement CalendaService Problem

Posted by Dario Guida <pr...@infotelsistemi.com>.
Thank you!!

 

Singole quote is the solution

 

Da: Abhishek Yadav [mailto:abhishek.yadav@hiddenbrains.in] 
Inviato: mercoledì 15 ottobre 2014 13:09
A: Openmeetings user-list
Oggetto: Re: saveAppointement CalendaService Problem

 

Hello Dario,

 

 &mmClient='1,firstname,lastname,hans  <mailto:.tier@gmail.com,1,Etc/GMT+1> .tier@gmail.com,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 <pr...@infotelsistemi.com> 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 .tier@gmail.com,1,Etc/GMT+1

 

With this : String mmClient = URLEncoder.encode("1,renato,renato,mail@hotmail.it,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%2Cmail%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

 

 

 


Re: saveAppointement CalendaService Problem

Posted by Abhishek Yadav <ab...@hiddenbrains.in>.
Hello Dario,

* &mmClient='1,firstname,lastname,hans .tier@gmail.com,1,Etc/GMT+1
<.tier@gmail.com,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 <
produzionedg@infotelsistemi.com> 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
> .tier@gmail.com,1,Etc/GMT+1
>
>
>
> With this : String mmClient = URLEncoder.encode("1,renato,renato,
> mail@hotmail.it,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
>
>
>
>
>