Cisco Cisco Prime Home 6.3 Developer's Guide
Cisco Prime Home – Integration Guide
OL-28558-01 v5.1
4
Use Case .................................................................................................................................................................. 32
Method .................................................................................................................................................................... 32
HTTP Interaction ............................................................................................................................................... 32
Utilities Used by the Examples ..................................................................................................................... 33
Interacting with Search ......................................................................................... 34
Use Case ............................................................................................................................................................. 35
Method .................................................................................................................................................................... 35
HTTP Interaction ............................................................................................................................................... 35
Code ..................................................................................................................................................................... 36
SearchService.scala ........................................................................................................................................... 36
SearchResult.scala ............................................................................................................................................. 36
SearchUseCase.scala ......................................................................................................................................... 39
Interacting with the Device Lifecycle ..................................................................... 40
Use Case ............................................................................................................................................................. 40
Method ............................................................................................................................................................... 40
HTTP Interaction ........................................................................................................................................... 40
Creating the Subscriber .................................................................................................................................. 40
Finding / Creating a Device .......................................................................................................................... 41
Enabling Services ............................................................................................................................................... 43
Updating an Application ................................................................................................................................ 45
Replacing & Deleting a Device ..................................................................................................................... 49
Sample Code ......................................................................................................................................................... 53
DeviceService.scala ........................................................................................................................................... 55
LifeCycleUseCases.scala .................................................................................................................................. 57
Creating Control Panel sessions for Single Sign On ................................................ 61
Use Case ............................................................................................................................................................. 61
Method ............................................................................................................................................................... 61
HTTP Interaction (Web Services) ........................................................................................................... 61
HTTP Interaction (Browser) ..................................................................................................................... 62
Sample Code ..................................................................................................................................................... 62
ControlPanelSessionService.scala .............................................................................................................. 62
AuthBridgeHttpRequestHandler.scala..................................................................................................... 64
Deprecated ........................................................................................................... 66
Changing SSID with CURL .......................................................................................................................... 66
Working with Subscribers in Java ........................................................................................................... 67
Introduction ......................................................................................................................................................... 67
Main Example ...................................................................................................................................................... 67
Interaction with the API ................................................................................................................................. 68
Data Classes .......................................................................................................................................................... 70
Support ................................................................................................................................................................... 75
Appendix A: CAQL BNF ......................................................................................... 78