예제 #1
0
        public IMarketUserData SendQueryUserRequest()
        {
            QueryUserRequest userReq = new QueryUserRequest(); //create query user requset
            IMarketUserData  output  = client.SendPostRequest <QueryUserRequest, RealMarketUserData>(loginInfo.GetURL(), loginInfo.GetUser(), loginInfo.GetToken(), userReq);

            return(output);
        }
예제 #2
0
        /// <summary>
        /// Describes user information, including inventory, funds and active request ID's description.
        /// </summary>
        /// <returns>Prints a description of user information, including inventory, funds and active request ID's</returns>
        public IMarketUserData SendQueryUserRequest()
        {
            SimpleHTTPClient client   = new SimpleHTTPClient();
            QueryUser        request  = new QueryUser("queryUser");
            string           token    = SimpleCtyptoLibrary.CreateToken(User, PrivateKey);
            IMarketUserData  response = client.SendPostRequest <QueryUser, MarketUserData>(Url, User, token, request);

            return(response);
        }