Click here to load reader

Unity Connection .NET REST · PDF file Cisco Unity Connection .NET REST SDK Contents Overview..... 4

  • View
    12

  • Download
    1

Embed Size (px)

Text of Unity Connection .NET REST · PDF file...

  • Cisco Unity Connection .NET REST SDK

    Contents

    Overview .......................................................................................................................................... 4

    Requirements/Special Notes ........................................................................................................... 4

    Installing and Using the Library in Your Project .............................................................................. 5

    The Easy Way .............................................................................................................................. 5

    The Hard Way .............................................................................................................................. 5

    Watching the traffic with Fiddler2 .................................................................................................... 5

    HTTP Communication Changes in 10.x .......................................................................................... 6

    Using the .NET REST SDK ............................................................................................................. 7

    Getting Started ............................................................................................................................. 7

    Logging into Connection ........................................................................................................... 7

    The WebCallResult Class ........................................................................................................ 8

    The UnityConnectionRestException ........................................................................................ 9

    Death to Magic Numbers! ....................................................................................................... 10

    Updating Properties on Objects With Dirty Lists .................................................................... 10

    Handling Clusters and Connectivity ....................................................................................... 11

    Logging and Debugging with the SDK ................................................................................... 13

    Users .......................................................................................................................................... 14

    Creating and Deleting Users .................................................................................................. 14

    Finding and Fetching Single Users ........................................................................................ 15

    Finding and Fetching Lists of Users ....................................................................................... 16

    Updating Users ....................................................................................................................... 18

    Voice Names .......................................................................................................................... 19

    PINs and Passwords .............................................................................................................. 20

    Private Lists ............................................................................................................................ 21

    Alternate Extensions .............................................................................................................. 23

    Notification Devices ................................................................................................................ 24

    Message Waiting Indicators ................................................................................................... 26

    Mailbox Information ................................................................................................................ 27

    Class of Service ..................................................................................................................... 28

    Greetings ................................................................................................................................ 28

    Transfer Options ..................................................................................................................... 29

    Menu Entries .......................................................................................................................... 29

    Phone System ........................................................................................................................ 29

  • Exiting the User Mailbox Conversation .................................................................................. 30

    LDAP Users ............................................................................................................................... 30

    Messages ................................................................................................................................... 31

    Fetching Messages for a User ............................................................................................... 31

    Send a New Message Using Wav File ................................................................................... 33

    Send a New Message Using Phone (CUTI) ........................................................................... 34

    Forwarding a Message With Intro .......................................................................................... 35

    Replying to a Message ........................................................................................................... 36

    Deleting Messages and the Deleted Items Folder ................................................................. 37

    Helper Methods ...................................................................................................................... 37

    User Templates .......................................................................................................................... 37

    Finding and Fetching User Templates ................................................................................... 37

    Creating, Updating and Deleting User Templates.................................................................. 38

    Global Users .............................................................................................................................. 39

    System Contacts ........................................................................................................................ 39

    Call Handlers .............................................................................................................................. 40

    Creating and Deleting Call Handlers ...................................................................................... 40

    Finding and Fetching Call Handlers ....................................................................................... 41

    Updating Call Handlers .......................................................................................................... 42

    Voice Names .......................................................................................................................... 42

    Greetings ................................................................................................................................ 43

    Transfer Options ..................................................................................................................... 45

    Menu Entries .......................................................................................................................... 47

    Getting and Setting Call Handler Owners .............................................................................. 48

    Getting Call Handler Owners in 10.0 and Later ..................................................................... 48

    Setting and Deleting Call Handler Owners in 10.0 and Later ................................................ 49

    Determining if a User is an Owner of a Handler Versions Prior to 10.0 ................................. 49

    Call Handler Templates ............................................................................................................. 49

    Finding and Fetching Call Handler Templates ....................................................................... 49

    Creating, Updating and Deleting Call Handler Templates ..................................................... 50

    Post Greeting Recordings .......................................................................................................... 51

    Directory Handlers ..................................................................................................................... 52

    Creating, Updating and Deleting Directory Handlers ............................................................. 53

    Custom Recorded Greetings .................................................................................................. 53

    Interview Handlers ..................................................................................................................... 54

    Creating, Updating and Deleting Interview Handlers ............................................................. 54

    A Note About Dispatch Delivery ............................................................................................. 55

  • Finding and Fetching Interview Handlers ...