Initialize.vi

18 Jun 2014

The Initialize.vi reads a key file that contains three JSON encoded key value pairs and builds the CDB Client out cluster. The CDB Client out cluster is used by the other VIs in this palette to authenticate with the Cloud Dashboard API.

The Key file contains three values that define the owner, the device name and the API URL. The owner is encoded in the apiKey field. The device name can be any globally unique string. The baseUrl is the URL address of the Cloud Dashboard API.

keyFile.txt
        
        { 
          "apiKey" : "exampleKeyABCDEFGHIJK",
          "deviceId" : "default-id-791886",
          "baseUrl" : "https://cdb-dev.niwsc.com/deviceapi-2.0/rest"
        }