APIs Flags on UCCX9 for time of day

Hi,
I was discussing UCCX and our upgrades to V9 for a few of our customers with a Voice CCIE at an event a few days ago, and was explaining that  our customers found the configured time of day and holidays  in scripts was very restricting. They want the ability to upload holidays and early close the call centre via a Web interface. I advised that was looking into doing this via a SQL server running a stored procedure fired from a script; however this would not be possible with our clients on the enhanced license.
The CCIE mentioned that in UCCX v9 we can use APIs to set flags and reference these in scripts. I have has a trawl of the Web but cannot find any reference to this. Can someone point me in the right direction where I can find :-
a) How to reference these flags in scripts – I am more than happy to write the script logic
b) Info to pass to our Developer on how to integrate with APIs to set these flags.

Hi, first thing first, you should see this post, which lays out for you how to integrate UCCX Enhanced with an external DB via a "man in the middle" web server.
https://supportforums.cisco.com/docs/DOC-29776
Long story short, tell your developer to build a URL for accessing calendar and business hours logic in various formats: XML, JSON, HTML, etc.  You'll use XML, but asking them for more opens your options down the road.
Next up, the API's.  These are pretty new to UCCX, with v9.0 bringing the first round of access and then v10 coming in behind with even more access.
Normally, when I don't know the answer to a question on the forums, I go research it, and sometimes proof of concept it, and then post my findings.  However, the developer.cisco.com site has a revoked certificate at the moment and I cannot get to the API docs for UCCX.  Or says the proxy im going through anyway.
I've managed to get my hands on the documentation, unfortunately I don't have UCCX 9 or 10 to try this out on so look at this more of a point in the right direction.
The API you're CCIE was referring to is most likely the application API within System Configuration grouping of APIs.  It has five or so methods, one of them is an HTTP PUT to modify the application of your choice.
HTTP Method
PUT
URI
http:///adminapi/application/{applicationName}
Example URI
http://10.10.10.10/adminapi/application/mysweetapplication
Content Body Type
Application/XML or Application/JSON
Response Code on Success
HTTP 200
Response Codes on Failure
HTTP 401, 405 or 412
Error Codes
None
In your Content Body, which is like a file you send it with instructions in either XML or JSON format, you will need to send it:
script - The name of the current script (unless you plan to also change it)
scriptParams - The list of parameters for the script
script
In order to send it the same script name that is currently using, you'll need to query the application first, which means you'll need to use another one of the five available methods for the application: Get Application
HTTP Method
GET
URI
http:///adminapi/application/{applicationName}
Example URI
http://10.10.10.10/adminapi/applications/mysweetapplication
Content Body Type
Application/XML or Application/JSON
HTTP Code on Success
HTTP 200
HTTP Codes on Failure
HTTP 401, 405
Error Codes
None
Inside that response (assume XML for a moment) you will see:
    mysweetscript.aef 
This gives you the current script name to use in your Modify Method.
scriptParams
This is where things get a little fuzzy without some hand on experience (good thing there's also a forum on the delvepor site).  The application XSD shows us that the scriptParams element is defined as:
Which tells us that the name of the element is scriptParams, the type is variable (more on that in a second), it is optional, and can occur an infinite amount of times in the XML document.
The type variable is pretty key, as the application XSD defines type variable as:
That tells us three major things about variable types:
It has to have a single name element whose value has to be a string and have atleast one character in itThis is the name of the variable in your script  E.g., start_time
It has to have a single value element whose value has to be a string and have atleast one character in itThis is what value you want to set it to  E.g., T[8:00 AM]
It has to have a single type element whose value has to be a string and have atleast one character in itThis is what type of variable it is in your script  E.g., Time
Note that the XSD does not define the format of the name, value, or type elements, above the the string and 1 character limitation.
Therefore a valid XML document should look like:
<?xml version="1.0" encoding="utf-8"?>      mysweetscript.aef          start_time      T[8:00 AM]      Time     
To conclude this much longer than anticipated reply, a few things I do not know about how this works:
How do you disable the use of a parameter such that the script default value takes effect?
How do you set multiple parameters at once without sending multiple API PUT requests?
It might just be:
<?xml version="1.0" encoding="utf-8"?>      mysweetscript.aef          start_time      T[8:00 AM]      Time              end_time      T[5:00 PM]      Time   
Do you have to send all of the existing parameters, as to not inadvertinly disable them?  And if so, how do you get a list of them?  Perhaps from the Get Application method, but I don't see that sepcified anywhere.
EDIT: I do see that there is a query parameter for the GET operation of an application named detail which can have a value of full.  I'd need to test it though.
Good luck and happy API programming!
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.

Similar Messages

  • Listen for time of day

    Hi, all!
    Is there a way you can listen for a time of day with Java? For example, display a dialog box when it is 4:00 P.M. If you could direct me to and API or resource, that would be great.
    Thanks!

    The most straight-forward way would be to use a timer to check every minute what time it is, and if there's an event, like "4PM it's tea-time!", at that time, open the dialog box. You can do all this with the classes in the Java API, see the documentation for Timer class (there are 2, actually).

  • My 320GB external drive for Time Machine now only has enough capacity to keep a backup of one day. All my other backups are gone.  What can I do to fix this situation?

    I've been using a 320GB external drive for time machine for the last several years.  The backups always worked fine and when necessary I was able to look at & restore older data from the time capsule.  Recently, I keep getting the message that a backup cannot be completed and an older backup will be deleted. Usually this wasn't an issue because I still had several months of information on disk.  Now a one-time backup takes up 315GB and therefore I only have a backup of the previous day.  I don't understand this because I thought that the backup only saves information that has changed and doesn't copy everything everytime.  What do I need to do to get my backups to a reasonable size so that I can keep at least 1 month data stored on it.?  Please don't tell me I need a larger drive ... that would be too easy. 

    Get a larger drive for your TM backups.
    The recommended size is 3 times what you are backup. So if 315 GB is a backup then you need a 1 TB drive.
    Allan

  • Scheduling specific time of day for automatic software updates

    How can one schedule a specific time of day (i.e. between 11:01 pm to 5.59 am when I have unlimited download availability) for an iMac to search for automatic software updates? System preferences only offer frequency, but no time option. If it is possible to schedule a specific time, will invoking the feature override the sleep function, wake up the machine and perform the software update and then let the machine go back to "sleep?" Thank you for all your help.

    to clarify barney's suggestion, the following terminal command will download all available updates and put them in your Downloads folder.
    softwareupdate -d --all
    so what you need to do is this.
    1. turn off automatic software update in software update system preferences.
    2. make a cron or a launch daemon to run the above terminal command periodically at the time of your choosing. to make a launch daemon I recommend using lingon http://tuppis.com/lingon/
    The daemon will only run if the computer is not asleep at the scheduled time so you might want to set to to wake/start shortly before that. this is done in system preferences->energy saver->schedule.
    to install the updates once they are downloaded double-click on the pkg files and follow the instructions.

  • Start recording video at a set time of day and off at a set time of day, and or can start rec video when motion detected, till no motion detected for a set period

    is there an app for iphone which can be set to start recording video at a set time of day and off at a set time of day, and or can start rec video when motion detected, till no motion detected for a set period. basically someone is vandalising my vehicle and i really really want to catch the mongrel
    thanks for any suggestions

    Nope.

  • Is it possible to schedule updates for a specific time of day like 12am?

    Is it possible to schedule updates for a specific time of day like 12am?

    No. If you use Automatic Updates, the apps update when the updates are available. Read this for a little more information.
    http://9to5mac.com/2013/09/20/ios-7-how-to-set-up-automatic-app-updates/

  • Is there a specific time of day that the BTO iMacs become available for pickup?

    As I am sure many people can relate to, I find myself hitting the refresh screen on my Apple order page awaiting the arrive of a built-to-order 27" iMac (3.4 GHz/ 32GB memory/ 3TB fusion/ 680MX graphics). Question for people with an inside scoop.... do the custom macs arrive a specific time of day (many retailers have scheduled deliveries at specic times during the day). The reason I ask is because if my Mac is only going to become "available for pick-up" in the morning, I will know that after... let's say 10am.. there is no reason for me to keep checking because I will know it won't be showing up on this specific business day, if it hasn't already. Any insight on how this works? Thanks fellow Apple fans!

    Goodness gracious.... Not even 5 minutes after I replied to you, my item became available for pickup! It's like they were listening in! haha !

  • How can I set iTunes to check for new podcasts at a specific time of day?

    Hi guys,
    Anybody know a work around for this? I thought it was just a matter of clicking the refresh button at the time I want iTunes to look for new podcasts, but it doesn't seem to be the case...
    I want iTunes to look for new podcasts at 2 am every day. So, at 2 am, I clicked the refresh button in the Podcasts section in iTunes. It would then say, in the settings, that iTunes last checked for podcasts at 2 am and will look again at 2 am the next day. Awesome, not. Every single time I try this, iTunes always resets itself and decides to look for podcasts at 2:49 pm. I can't work it out.
    So, if anyone has a solution, I would love to hear it! I'm on the latest version. 9.0.2. Thanks for reading.
    Regards,
    Daniel

    I'm looking for the solution to this issue too. Once or twice, a full system restart has seemed to solve the problem temporarily but it slips back to an afternoon refresh after a few days.
    Seems like it would be simple for Apple to allow us to specify a time of day for refreshes in the preferences section.

  • For iPhone4 with iOS7, how can i see the time of day for a voice memo instead of the length of time for the recording?

    For iPhone 4S with iOS7 version 7.0.2, how can I see the time of day for a voice memo, as opposed to its length (of time)?

    For iPhone 4S with iOS7 version 7.0.2, how can I see the time of day for a voice memo, as opposed to its length (of time)?

  • My iPhone5 has terrible Network connection. It rarely works at the normal speed-if ever. I usually get 3G or 1x network dozens of times a day. My phone also gets pretty hot when i try to use any data for more than a few minutes.

    My iPhone5 network connection has been terrible for the past week and a half. My phone is no more than a year old so I don't see why it would be a problem with the phone. When I try to use the internet or look for apps or anything like that, anything that uses data really, it takes FOREVER if it even loads! Most of the time it won't even load. My network changes from LTE(which doesn't work well) to 3G(which works even less) and then to 1x(which basically doesn't work at all). This happens dozens of times a day. It's getting quite irritating. I've tried turning my phone off and letting it sit for a while and that does nothing. I'd really prefer NOT to restore my phone. What is the deal??!

    Are you broadcasting your SSID? Sometimes this can cause a problem connecting. Is this Cisco router running any turbo modes or special preparatory protocols.
    There are no know issues with Wi-Fi connectivity except on first connection; and the chance of 2 devices having the exact same issue is very unlikely. This sounds like something to do with your wireless router.
    Have you tried to connect to another Wi-Fi hotspot elsewhere?
    Do you have any 2.4 GHz wireless phones or security system that could interfere with connection?

  •  hello actually I have purchased my iPod touch 4 generation 1 month back.initially I find that it's battery life is superb.it works for 5 -6 days in standby and 8-9 hrs usage time but from past 2days its battery list draining very fast I have to charge i

     hello actually I have purchased my iPod touch 4 generation 1 month back.initially I find that it's battery life is superb.it works for 5 -6 days in standby and 8-9 hrs usage time but from past 2days its battery is draining very fast I have to charge it twice a day.i m using iOS 6.0.1.plz suggest me what to do??its just 1 month old ..I have spend lot of money to buy it, I don't want it like that..plz reply.....

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Then see if placing the iPod in airplane mode when in standby helps.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • HT201317 Dear Sir/Madam i want to tell you that I am very disappointed because I just read that in photo stream my photos are stored only for (30) thirty days.I didn't know that and i didn't have the time to save them on a device.I was robbed of mobile al

    Dear Sir/Madam
    I want to tell you that I am very disappointed because I just read that in photo stream my photos are stored only for (30) thirty days.I didn't know that and I didn't have the time to save them on a device.
    I was robbed of mobile before (3) three days and I lost 2.000 photos!
    Is there any possibility to retrieve them?
    If it was possible that would be great as I would save them immediately to my computer instead of losing them again.
    Thank you for understanding
    Kind Regards
    Giaourtsakis Kleanthis

    If you were trying to get this apple, you would do it here:  https://getsupport.apple.com/

  • I need to configure a new hard disk as backup disk for time machine. The set up program is running and it says it will take 9 days to backup about 56 GB. Is it normal ?

    I need to configure a new hard disk as backup disk for time machine.
    The set up program is running since two hours and it says it will take 9 days to backup about 56 GB.
    Is it normal ?

    Roberto 17 wrote:
    I started this morning at 12 and after 5 hours now the backup is about 6 GB up on 56 GB.
    The new HD is a WD My Passport Edge 500 GB capacity
    5 hours to do 6 GB of transfer is NOT normal, even for USB 2.0 so there's something wrong here. I'd say cancel it, wipe the drive and then test the integrity of the drive. Do some file transfers over to and see if it's behaving normally. It could be a bad USB cable, it could be a bad drive or bad enclosure. As it's new, I suspect you haven't really put it through its paces yet and it's important to do that first before commissioning it to serve as your "reliable backup."

  • I bought an ipod in 2006 and used it only for a few days, and i lost it when it fell two times from my hand and it wasn`t working, help me regarding this.

    i bought an ipod in 2006 and used it only for a few days, and i lost it when it fell two times from my hand and it wasn`t working, help me regarding this.
    REGARDS
    RISHABH AULIYA

    Apple - Support - iPod - Repair pricing - http://www.apple.com/support/ipod/service/prices/
    ipod repair options - https://discussions.apple.com/thread/3900047 and https://discussions.apple.com/message/18867033
    Service Answer Center - iPod - http://support.apple.com/kb/index?page=servicefaq&geo=US&product=ipod  <-- enter correct country once on page.

  • Updated iPad2 to iOS6. Now it randomly freezes. Have to reboot (home   sleep key for 15 seconds) several times per day. Help!

    Help! I guess I can restore it to original factory settings but I am afraid of losing everything. If it helps the iPad is NOT jailbroken. Any ideas or do I have to wait for a future update?

    Just to clarify. Once I am done with the iPad and push the sleep button (upper right corner) or just let it sleep from inactivity for a couple minutes, the issue happens when I try to wake it up. I can see the unlock screen with the pin pad but the iPad becomes unresponsive and I cannot enter the numbers or I can enter the numbers but it freezes right after that while the pin pad is still visible. The only thing that fixes it is to hold the home and sleep button for 10-15 seconds and wait a minute for the whole thing to reboot. At that point it usually works. Still, what I liked about the iPad was the convenience of being immediately ready and now I have to reboot many times per day.
    I have an iPad2 with the latest update (6.01) and it is not jail broken. Apple help me please!

Maybe you are looking for