The following code examples are posted here:

CTS 2 :  Multiple examples of how to access the CTS2 REST API can be found here