QuickbaseNet 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package QuickbaseNet --version 1.0.1
                    
NuGet\Install-Package QuickbaseNet -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QuickbaseNet" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="QuickbaseNet" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="QuickbaseNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add QuickbaseNet --version 1.0.1
                    
#r "nuget: QuickbaseNet, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package QuickbaseNet@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=QuickbaseNet&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=QuickbaseNet&version=1.0.1
                    
Install as a Cake Tool

QuickbaseNet 🚀 NuGet

📋 Overview

QuickbaseNet is a versatile C# library designed to simplify and streamline interactions with the QuickBase API. Tailored for developers looking to efficiently perform CRUD operations and build complex queries, QuickbaseNet offers a set of intuitive tools including QuickBaseCommandBuilder, QueryBuilder, and QuickbaseClient. Whether you're managing database records or crafting detailed queries, QuickbaseNet enhances your experience with QuickBase tables through its fluent and user-friendly interfaces.

✨ Features

  • Fluent Interface 🌊: Methods for building various requests easily and intuitively.
  • Comprehensive CRUD Operations 🛠️: QuickBaseCommandBuilder for adding new records, updating existing ones, or deleting records efficiently.
  • Advanced Query Support 🔍: QueryBuilder for constructing complex query requests with ease.
  • Seamless Client Setup 🌐: QuickbaseClient for initializing connections with realm and user token for secure and straightforward API interaction.

💾 Installation

To get started with QuickbaseNet, you can install it via NuGet or clone the repository:

# Install via NuGet
Install-Package QuickbaseNet

# Or clone the repository
git clone https://github.com/ducksoop/quickbase-net.git

🛠️ Usage

QuickbaseNet simplifies working with the QuickBase API across various operations. Here's how you can use its main features:

Initializing QuickbaseClient 🌟

// Initialize QuickbaseClient with your realm hostname and user token
var quickbaseClient = new QuickbaseClient("your_realm_hostname", "your_user_token");

Handling API Responses 📬

Inserting Records
// Configure and build an insert request using QuickBaseCommandBuilder
var insertRequest = new QuickBaseCommandBuilder()
    .ForTable("your_table_id")
    .ReturnFields(1, 2, 3) // Specify which fields to return after the insert operation
    .AddNewRecord(record => record
        .AddField(6, "New record description") // Add data for field 6
        .AddField(7, 100) // Add data for field 7
        .AddField(9, "2024-02-13")) // Add data for field 9
    .BuildInsertUpdateCommand();

// Send the insert request and handle the response
var result = await quickbaseClient.InsertRecords(insertRequest);

if (result.IsSuccess)
{
    // Handle successful insert response
}
else
{
    // Process the error
}
Updating Records
// Configure and build an update request using QuickBaseCommandBuilder
var updateRequest = new QuickBaseCommandBuilder()
    .ForTable("your_table_id")
    .ReturnFields(1, 2, 3) // Specify which fields to return after the update operation
    .UpdateRecord(8, record => record // Specify the record to update based on its record ID (8 in this example)
        .AddField(7, 150) // Update field 7 with a new value
        .AddField(9, "2024-02-15")) // Update field 9 with a new value
    .BuildInsertUpdateCommand();

// Send the update request and handle the response
var result = await quickbaseClient.UpdateRecords(updateRequest);

if (result.IsSuccess)
{
    // Handle successful update response
}
else
{
    // Process the error
}
Deleting Records
// Build a delete request using QuickBaseCommandBuilder
var deleteRequest = new QuickBaseCommandBuilder()
    .ForTable("your_table_id")
    .WithDeletionCriteria("{6.EX.'hello'}")
    .BuildDeleteCommand();

// Send the delete request and handle the response
var result = await quickbaseClient.DeleteRecords(deleteRequest);

if (result.IsSuccess)
{
    // Handle successful delete response
}
else
{
    // Process the error
}

QueryBuilder - Crafting Queries with Precision 🔎

Building and Sending a Query 📤
// Create a query using QueryBuilder
var query = new QueryBuilder()
    .From("bck7gp3q2")
    .Select(1, 2, 3)
    .Where("{1.CT.'hello'}")
    .SortBy(4, "ASC")
    .SortBy(5, "ASC")
    .GroupBy(6, "equal-values")
    .Build();

// Send the query and handle the response
var result = await quickbaseClient.QueryRecords(query);

if (result.IsSuccess)
{
    // Process successful response
}
else
{
    // Handle error
}

👐 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

📜 License

Distributed under the MIT License. See LICENSE for more information.

📚 Additional Resources

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 2,440 2/22/2024
1.0.1 193 2/16/2024
1.0.0 219 1/23/2024
0.1.1 182 1/23/2024
0.1.0 251 1/3/2024

Initial release; right now only have Query capabilities available.