Search code examples
c#apiquickbase

Examples of Quickbase API in C#


I am fairly new to the use of APIs and haven't touched Quickbase until today. I was researching the Quickbase API and it seemed as if all the examples I saw were written in XML or some similar variant. Is there a way to write code in C# that will do the same things that I saw could be done on the Quickbase website's API documentation? If you know of any code examples, please let me know.


Solution

  • There is a QuickBase C# SDK that might help get you started.

    using System;
    using Intuit.QuickBase.Client;
    
    namespace MyProgram.QB.Interaction
    {
        class MyApplication
        {
            static void Main(string[] args)
            {
                var client = QuickBase.Client.QuickBase.Login("your_QB_username", "your_QB_password");
                var application = client.Connect("your_app_dbid", "your_app_token");
                var table = application.GetTable("your_table_dbid");
                table.Query();
    
                foreach(var record in table.Records)
                {
                   Console.WriteLine(record["your_column_heading"]);
                }
                client.Logout();
            }
        }
    }
    

    There is also a QuickBase API Wrapper example as well.