Example #1
0
        //the responses of all the questions in the set put together in a string and uploaded to the microservice at api.cognitivevr.io
        //each question is already sent as a transaction
        void SendQuestionResponses(string responses)
        {
            string url = Constants.POSTEXITPOLLRESPONSES(QuestionSetName, questionSetVersion);

            //byte[] bytes = System.Text.Encoding.ASCII.GetBytes(responses);

            CognitiveVR.Util.logDebug("ExitPoll Send Answers\nurl " + url);

            //var headers = new Dictionary<string, string>();//AUTH
            //headers.Add("Content-Type", "application/json");
            //headers.Add("X-HTTP-Method-Override", "POST");
            //headers.Add("Authorization", "APIKEY:DATA " + CognitiveVR_Preferences.Instance.APIKey);

            NetworkManager.Post(url, responses);
        }