Skip to content

tbstudee/intacct-sdk-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intacct SDK for .NET

Please note the Intacct SDK for .NET is actively being developed. This is a developer preview that should not be used in a production environment.

Resources

  • Intacct - Intacct's home page
  • Issues - Report issues with the SDK or submit pull requests
  • License - Apache 2.0 license

System Requirements

  • You must have an active Intacct Web Services Developer license
  • .NET Framework >4.5.2

Quick Installation Guide

Install the SDK using NuGet

PM> Install-Package Intacct.SDK

Quick Example

using Intacct.Sdk;
using Intacct.Sdk.Xml;
using Intacct.Sdk.Functions.Common;
using System;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                SdkConfig config = new SdkConfig()
                {
                    SenderId = "senderid",
                    SenderPassword = "senderpassword",
                    CompanyId = "company",
                    UserId = "user",
                    UserPassword = "pass",
                };
                IntacctClient client = new IntacctClient(config);

                Console.WriteLine("Current Company ID: " + client.SessionCreds.CurrentCompanyId);
                Console.WriteLine("Current User ID: " + client.SessionCreds.CurrentUserId);

                Read read = new Read()
                {
                    ObjectName = "VENDOR",
                };
                Content content = new Content();
                content.Add(read);

                Task<SynchronousResponse> response = client.Execute(content);

                response.Wait();

                Console.WriteLine("Read function control ID: " + response.Result.Control.ControlId);

                Console.WriteLine("Number of vendor objects read: " + response.Result.Operation.Results[0].Count);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception caught: " + ex.Message);
            }

            Console.ReadLine();
        }
    }
}

About

Official repository of the Intacct SDK for .NET - developer preview

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%