Example Usage of ODS Calendar Controller for Create New Task

  1. Get the instance id:

    $ curl -i "http://ods-qa.openlinksw.com/ods/api/instance.get.id?instanceName=Demo%20User%27s%20Calendar&sid=7743ca46d991d231d04 6713f039d37b7&realm=wa" HTTP/1.1 200 OK Server: Virtuoso/06.02.3129 (Linux) x86_64-generic-linux-glibc25-64 VDB Connection: Keep-Alive Date: Fri, 20 May 2011 05:16:44 GMT Accept-Ranges: bytes Content-Type: text/xml; charset="UTF-8" Content-Length: 59 <result> <code>148</code> <message>Success</message> </result>

  2. Create new task:

    $ curl -i "http://ods-qa.openlinksw.com/ods/api/calendar.task.new?inst_id=148&subject=test_task&description=test&eventStart=201 1.05.20&eventEnd=2011.05.20&event=1&user_name=demo&password_hash=921q783d9e4cbdf5cvs343dafdfvrf6a4fh" HTTP/1.1 200 OK Server: Virtuoso/06.02.3129 (Linux) x86_64-generic-linux-glibc25-64 VDB Connection: Keep-Alive Date: Fri, 20 May 2011 05:46:05 GMT Accept-Ranges: bytes Content-Type: text/xml; charset="UTF-8" Content-Length: 60 <result> <code>2518</code> <message>Success</message> </result>

Related