Exemplo n.º 1
0
        public async Task <bool> ShareToken()
        {
            if ("post".Equals(HttpContext.Request.Method, StringComparison.OrdinalIgnoreCase))
            {
                string bodyAsText = await new System.IO.StreamReader(HttpContext.Request.Body).ReadToEndAsync();
                Token  token      = JsonConvert.DeserializeObject <Token>(bodyAsText);

                return(await _googleSheetsService.SaveToken(token));
            }
            else
            {
                return(false);
            }
        }