示例#1
0
        //public async Task<List<Course>> Get(string refreshtoken)
        public async Task <Person> Get(string refreshtoken)
        {
            //var credential = GoogleFlowCreator.CreateCredential(refreshtoken);
            //var x = await GetAllStudentActiveCoursesByAccesstoken(credential);
            //return x;

            var credential = GoogleFlowCreator.CreateCredential(refreshtoken);
            var x          = await GoogleFlowCreator.GetUserId(credential);

            return(x);
        }