back to home

ballerina-platform / module-ballerinax-googleapis.sheets

View on GitHub
109 stars
52 forks
0 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing ballerina-platform/module-ballerinax-googleapis.sheets in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/ballerina-platform/module-ballerinax-googleapis.sheets)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Ballerina Google Sheets Connector The Google Sheets, developed by Google LLC, allows users to programmatically interact with Google Sheets, facilitating tasks such as data manipulation, analysis, and automation. The package offers APIs to connect and interact with Sheets API endpoints, specifically based on Google Sheets API v4. Setup guide To use the Google Sheets connector, you must have access to the Google Sheets API through a Google Cloud Platform (GCP) account and a project under it. If you do not have a GCP account, you can sign up for one here. Step 1: Create a Google Cloud Platform project • Open the Google Cloud Platform Console. • Click on **Select a project** in the drop-down menu and either select an existing project or create a new one. Step 2: Enabling Google Sheets API • Select the created project. • Navigate to **APIs & Services** > **Library**. • Search and select . Then click **ENABLE**. Step 3: Creating an OAuth consent app • Click on the **OAuth Consent Screen** in the sidebar. • Select and click **CREATE**. • Fill in the app information and add the necessary scopes for Google Sheets API. Step 4: Generating client ID & client secret • In the left sidebar, click on **Credentials**. • Click on **+ CREATE CREDENTIALS** and choose **OAuth Client ID**. • You will be directed to the OAuth consent screen, in which you need to fill in the necessary information below. | Field | Value | | ----------- | ----------- | | Application type | Web Application | | Name | Sheets Client | | Authorized Redirect URIs | | Step 5: Obtain the access and refresh tokens Follow these steps to generate the access and refresh tokens. **Note**: It is recommended to use the OAuth 2.0 playground to acquire the tokens. • Configure the OAuth playground with the OAuth client ID and client secret. • Authorize the Google Sheets APIs. • Exchange the authorization code for tokens. Quickstart To use the connector in your Ballerina project, modify the file as follows: Step 1: Import connector Import the module. Step 2: Create a new connector instance Create a with the obtained OAuth2.0 tokens and initialize the connector with it. Step 3: Invoke connector operation Now, utilize the available connector operations. Create a spreadsheet with a given name Step 4: Run the Ballerina application Examples The connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like creating, reading, and appending rows. • Cell operations - Operations associated with a cell, such as clearing, setting, and deleting cell values. • Grid filtering - Demonstrate filtering sheet values using a grid range. • Sheet modifying - Basic operations associated with sheets such as creating, reading, and appending rows. Build from the source Prerequisites • Download and install Java SE Development Kit (JDK) version 17. You can download it from either of the following sources: • Oracle JDK • OpenJDK > **Note:** After installation, remember to set the environment variable to the directory where JDK was installed. • Download and install Ballerina Swan Lake. • Download and install Docker. > **Note**: Ensure that the Docker daemon is running before executing any tests. Build options Execute the commands below to build from the source. • To build the package: • To run the tests: • To build the without the tests: • To run tests against different environments: • To debug the package with a remote debugger: • To debug with the Ballerina language: • Publish the generated artifacts to the local Ballerina Central repository: • Publish the generated artifacts to the Ballerina Central repository: Contribute to Ballerina As an open-source project, Ballerina welcomes contributions from the community. For more information, go to the contribution guidelines. Code of conduct All the contributors are encouraged to read the Ballerina Code of Conduct. Useful links • For more information go to the package. • For example, demonstrations of the usage, go to Ballerina By Examples. • Chat live with us via our Discord server. • Post all technical questions on Stack Overflow with the #ballerina tag.