Programmaticaly access Inbox data

Version 1
    This document was generated from CDN thread

    Created by: Chandar vr on 19-01-2010 10:38:26 AM
    Hi,
     
    Using Curl is it posible to access the inbox data from the unity server
    or is there any direct access to the database of the unity server ?
     
    Please help me on this ..
     
    thanks/chandar

    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 19-01-2010 12:23:36 PM
    In 8.0 it will be possible to use any HTTP client to access the Connection message interface (CUMI).  Below is a curl example of retrieving all the inbox messages for a user:
     
    curl -u operator:ecsbulab -v -X GET -H"Accept: application/json" http://$SERVER/vmrest/mailbox/folders/inbox/messages
     
    -Dave
     
     

    Subject: RE: Programmaticaly access Inbox data
    Replied by: Chandar vr on 19-01-2010 01:22:30 PM
    Hi,
    My Cisco Unity version is 7.1.2.20000.
    So will it be possible to use CURL in this case ?
     
    thanks/Chandar
     
    In 8.0 it will be possible to use any HTTP client to access the Connection message interface (CUMI).  Below is a curl example of retrieving all the inbox messages for a user:
     
    curl -u operator:ecsbulab -v -X GET -H"Accept: application/json" http://$SERVER/vmrest/mailbox/folders/inbox/messages
     
    -Dave
     
     


    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 19-01-2010 02:59:33 PM
    The CUMI interface is only available in 8.0,
     
    -Dave

    Subject: RE: Programmaticaly access Inbox data
    Replied by: Chandar vr on 20-01-2010 08:27:09 AM
    Hi,
     
    So is there any other method for accessing the messages in the older versions < 8.0
     
    The CUMI interface is only available in 8.0,
     
    -Dave


    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 20-01-2010 01:26:24 PM
    The only recommended interface for earlier versions is an IMAP interface.  The Connection message store supports IMAP, but that is not part of the REST interfaces, so you'd need to get support outside this forum.
     
    -Dave

    Subject: RE: Programmaticaly access Inbox data
    Replied by: Chandar vr on 21-01-2010 01:08:01 PM
    Hi .
    But there are few schema files available for each of the objects that can be retrieved through CUPI.Can i use this for accessing the Maibox of the unity server.Because i can see xml schema provided for mail box also.
     
    Please let me know whether i can use this through Soap webservice or any other format for accessing the various data.

    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 21-01-2010 01:23:02 PM
    There is no way to use the CUPI interface to access messages.  The mailbox resources accessible through CUPi are strictly for managing administrative information related to those resources.

    Subject: RE: Programmaticaly access Inbox data
    Replied by: Chandar vr on 21-01-2010 02:06:37 PM
    Hi,
           This is basically for managing/administrating the mailbox from a third party application.
     
    thanks/Chandar
     
    There is no way to use the CUPI interface to access messages.  The mailbox resources accessible through CUPi are strictly for managing administrative information related to those resources.


    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 21-01-2010 02:47:27 PM
    In that case I we'd better start back at the beginning, can you be more specific about what inbox data you want to manage?  In 7.1.3 the mailbox settings currently exposed in CUPI are read only, and the same will be true in 8.0.  Unfortunately there is no supported external interface to access Connection data in versions earlier than 7.1.3.   The best we can do is enter a feature request if we can get the specifics of what you are trying to do and try to address the requirements in a future version.
     
    -Dave

    Subject: RE: Programmaticaly access Inbox data
    Replied by: Chandar vr on 21-01-2010 03:24:43 PM
    Hi,
     
    Actualy in the CUPI Documentation it has been mentioned that we can use the xml schema for each of the objects that can be retrieved through CUPI.

    Actually i need to get the messages from the inbox which will be integrated with a third party application along with the user details and other configuration details.

    Or is it possible to directly access the database so that i can get the data directly from there ?
     
     

    Subject: RE: Programmaticaly access Inbox data
    Replied by: David Wanagel on 21-01-2010 03:35:49 PM
    I believe all of these questions have been answered:
     
    Hi,
     
    Actualy in the CUPI Documentation it has been mentioned that we can use the xml schema for each of the objects that can be retrieved through CUPI.
     
    You can access some mailbox settings read only via CUPI in 7.1.3 and later.  No write access is available.


    Actually i need to get the messages from the inbox which will be integrated with a third party application along with the user details and other configuration details.
     
    The inbox messages in 8.0 are available via CUMI and via IMAP in 8.0 and earlier versions.

    Or is it possible to directly access the database so that i can get the data directly from there ?
     
    We do not allow direct access to the database.