Exemple #1
0
        public Dictionary <string, object> ReturnRequest(Dictionary <string, string> param)
        {
            string url = endpoint + AUTHORIZE;

            param.Add(REQUESTTYPE, "ReturnRequest");

            string result = ExecuteRequest(param, url, METHOD_POST, true);

            return(OperationsParser.parseJsonToReturnRequest(result));
        }
Exemple #2
0
        public User getCredentials(User user)
        {
            string url = endpoint + CREDENTIALS;

            url = url.Replace("t/1.1/", "");
            url = url.Replace("t/1.2/", "");
            User userResponse = new User();

            string result = ExecuteRequest(user.toDictionary(), url, METHOD_POST, false);

            userResponse = OperationsParser.parseJsonToUser(result);
            return(userResponse);
        }