There are example programs for the DataHub APIs for C++, Java, and .NET that ship with the installation archive. If you go to the Windows menu and choose , you'll see and options. The source code for these applications is here (32-bit/64-bit versions of the DataHub program):
C:\Program Files (x86)\Cogent\API\
C:\Program Files\Cogent\API\