Ejemplo n.º 1
0
        private ApiResponse <TokenResultApiRequest> VerifyTokenByTokenSystem(string api_key, string token)
        {
            Dictionary <string, string> headerData = new Dictionary <string, string>();

            headerData.Add("api_key", api_key);
            headerData.Add("Token", token);
            string responseString = WebAPIHelper.SendRequestWithHeader(tokenConfig.VerifyTokenSystemURL, RequestMethod.POST, headerData);
            ApiResponse <TokenResultApiRequest> responseObj = JsonConvert.DeserializeObject <ApiResponse <TokenResultApiRequest> >(responseString);

            return(responseObj);
        }