示例#1
0
        public async Task <NewUserMinimumParams> GetNewUserParams(string userName)
        {
            var authRequest = new AuthRequest()
            {
                ClientVersion        = ClientVersion,
                Username             = userName,
                EncryptedDeviceToken = ByteString.CopyFrom(EncryptedDeviceToken)
            };

            var rs = await ExecuteRest("authentication/get_new_user_params", authRequest.ToByteArray());

            return(NewUserMinimumParams.Parser.ParseFrom(rs));
        }