コード例 #1
0
        public void TestMethodCubiqManagerAccess()
        {
            CubiqManagerAccess test1    = new CubiqManagerAccess();
            string             resource = "externalapi/getMachines";
            string             apiKey   = "CcGdrJhmt0FWzFPiBJAqsrbqJ8n4FI8ngmFaf6WwGod";
            string             method   = "get";

            test1.AccessCM(resource, apiKey, method);
        }
コード例 #2
0
        public void TestMethodCubiqManagerAccessJson()
        {
            CubiqManagerAccess test3     = new CubiqManagerAccess();
            string             resource  = "externalapi/getLatestMeasures";
            string             apiKey    = "CcGdrJhmt0FWzFPiBJAqsrbqJ8n4FI8ngmFaf6WwGod";
            string             method    = "post";
            string             parameter = "{\"machine\":\"63C6-2FEE-DEA0-DF2F-E92E-9FF3-6F44-0000\",\"limit\":1}";

            test3.AccessCM(resource, apiKey, method, parameter);
        }