DealCloud SDK - C#
DealCloud SDK is a wrapper around the DealCloud API, designed to assist clients and partners to build on top of our platform quickly and easily.
Features
- Ease of Development: Wraps the DealCloud API with an accessible interface. Allowing the developer to focus on requirements rather than managing HTTP requests.
- Best Practice: Built by Intapp, and implements our best practices for working with the DealCloud API.
- Fast: The DealCloud SDK manages asynchronous requests under the hood, so that larger tasks are done as quickly as possible.
Installation
Install using the NuGet package manager, for more detailed instructions, view the Installation section.
Example
Reading Data
Read from an object, and write the results to a JSON file.
using DealCloudSDK;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
var config = new ConfigurationBuilder()
.AddJsonFile("environment_config.json")
.Build();
var dc = new Client(config);
var data = dc.Data.ReadObject("Company", resolve="name").Result;
string jsonFilePath = "output.json";
// Serialize the list to JSON and write it to a file
string json = JsonConvert.SerializeObject(list, Formatting.Indented);
File.WriteAllText(jsonFilePath, json);
Console.WriteLine("Data written to output.json");
Writing Data
Create a Company.
using DealCloudSDK;
using Microsoft.Extensions.Configuration;
var config = new ConfigurationBuilder()
.AddJsonFile("environment_config.json")
.Build();
var dc = new Client(config);
// generate data
var data = new List<IDictionary<string, object>>
{
new IDictionary<string, object>
{
"CompanyName": "Intapp",
"CompanyType": 12345,
"BusinessDescription": "Software solutions for professional services. That's Intelligence Applied.",
"Sector": 14321,
},
}
// insert data
var result = dc.Data.Insert("Company", data).Result;