Advanced Google Sheets ASP.NET
Prompt
Create a complete, advanced-level, fully functional, production-grade ASP.NET Core project demonstrating Google Sheets integration. This project must cover all essential operations with Google Sheets APIs including: - Creating a new Google Sheet - Inserting data into the newly created sheet - Reading data from the sheet - Updating existing sheet data - Deleting specific sheet data - Deleting the entire sheet Provide detailed, step-by-step procedures for setting up the project, including: - Configuring Google Cloud Console for API access and credentials creation - Enabling necessary APIs - Installing and configuring all required NuGet packages and dependencies - Setting up authentication and authorization mechanisms securely For every part of the code, include clear, thorough explanations covering: - What each section or function does - How it integrates within the ASP.NET Core application - The role and purpose of each used library or NuGet package (e.g., Google.Apis.Sheets.v4, Google.Apis.Auth) - Any configuration settings and their implications Ensure the code is: - Well-structured and easy to understand - Testable and free of errors - Suitable for a production environment with best practices Output the instructions and code snippets in a clear, organized manner, using markdown formatting for readability. # Steps 1. Google Cloud Console setup with detailed instructions and screenshots (described textually). 2. Installing and configuring Google Sheets API client libraries in ASP.NET Core. 3. Authentication setup using OAuth 2.0 or service account credentials. 4. Implementing each functionality (create, read, update, delete sheet and rows) with comprehensive code examples. 5. Explanation of running and testing each feature. # Output Format Deliver the response as a comprehensive tutorial document in markdown format, including: - Sectioned headers - Code blocks for all code examples - Clear step-by-step procedural descriptions - Explanations after each code snippet # Notes - Emphasize security best practices for storing credentials. - Highlight nuances and common pitfalls. - Mention library versions and compatibility with ASP.NET Core versions. # Examples Include well-documented example methods for operations like CreateSheetAsync(), InsertDataAsync(), ReadDataAsync(), UpdateDataAsync(), DeleteDataAsync(), and DeleteSheetAsync(). Use placeholders for credentials but explain exactly where and how to set these up. # Response Formats {"prompt":"[the above detailed system prompt]","name":"Advanced Google Sheets ASP.NET","short_description":"Complete production-ready ASP.NET Core demo integrating Google Sheets with full CRUD operations.","icon":"CodeBracketIcon","category":"programming","tags":["Google Sheets","ASP.NET Core","API Integration","CRUD"],"should_index":true}
Related Coding Prompts
Write Code
As a seasoned programmer, your task is to write code in [programming language] to [perform action]. The code should be efficient, well-structured, and optimized for performance. Make sure to follow best practices and industry standards while implementing the necessary algorithms and logic to achieve the desired functionality. Test the code thoroughly to ensure it functions as intended and meets all requirements. Additionally, document the code properly for future reference and maintenance.
Debug Code
Act as a seasoned programmer with over 20 years of commercial experience. Analyze the provided [piece of code] that is causing a specific [error]. Your task involves diagnosing the root cause of the error, understanding the context and functionality intended by the code, and proposing a solution to fix the issue. Your analysis should include a step-by-step walkthrough of the code, identification of any bugs or logical mistakes, and a detailed explanation of how to resolve them. Additionally, suggest any improvements or optimizations to enhance the performance, readability, or maintainability of the code based on your extensive experience. Ensure that your solution adheres to best practices in software development and is compatible with the current development environment where the code is being executed.
Do Code Review
As a seasoned programmer with over 20 years of commercial experience, your task is to perform a comprehensive code review on the provided [piece of code]. Your review should meticulously evaluate the code's efficiency, readability, and maintainability. You are expected to identify any potential bugs, security vulnerabilities, or performance issues and suggest specific improvements or optimizations. Additionally, assess the code's adherence to industry standards and best practices. Your feedback should be constructive and detailed, offering clear explanations and recommendations for changes. Where applicable, provide examples or references to support your suggestions. Your goal is to ensure that the code not only functions as intended but also meets high standards of quality and can be easily managed and scaled in the future. This review is an opportunity to mentor and guide less experienced developers, so your insights should be both educational and actionable.