This library was generated by https://konfigthis.com
$ dotnet add package Splitit.Onboarding.NetSplitit's Onboarding API
This C# SDK is automatically generated by the Konfig:
<a name="frameworks-supported"></a>
<a name="dependencies"></a>
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.
<a name="installation"></a>
Generate the DLL using your preferred tool (e.g. dotnet build)
Then include the DLL (under the bin folder) in the C# project, and use the namespaces:
using Splitit.Onboarding.Net.Api;
using Splitit.Onboarding.Net.Client;
using Splitit.Onboarding.Net.Model;
<a name="usage"></a>
To use the API client with a HTTP proxy, setup a System.Net.WebProxy
Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;
<a name="getting-started"></a>
using System.Collections.Generic;
using System.Diagnostics;
using Splitit.Onboarding.Net.Api;
using Splitit.Onboarding.Net.Client;
using Splitit.Onboarding.Net.Model;
namespace Example
{
public class Example
{
public static void Main()
{
Configuration config = new Configuration();
// Configure custom BasePath if desired
// config.BasePath = "https://onboarding-v2.sandbox.splitit.com";
// Configure OAuth2 credentials for "application" OAuth flow
string clientId = System.Environment.GetEnvironmentVariable("CLIENT_ID");
string clientSecret = System.Environment.GetEnvironmentVariable("CLIENT_SECRET");
config.OAuthClientId = clientId;
config.OAuthClientSecret = clientSecret;
var apiInstance = new DataApi(config);
try
{
CountriesResponse result = apiInstance.GetCountries();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DataApi.GetCountries: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
All URIs are relative to https://onboarding-v2.sandbox.splitit.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DataApi | GetCountries | GET /api/data/get-countries | |
| DataApi | GetCurrencies | GET /api/data/get-currencies | |
| DataApi | GetProcessors | GET /api/data/get-processors | |
| DataApi | GetVerticals | GET /api/data/get-verticals | |
| DataApi | StatusLegend | GET /api/data/status-legend | |
| MerchantsApi | Create | POST /api/merchants/create | |
| MerchantsApi | CreateDeveloper | POST /api/merchants/create/developer | |
| MerchantsApi | Get | GET /api/merchants/get | |
| MerchantsApi | GetDetails | GET /api/merchants/get-details |
<a name="documentation-for-models"></a>
<a name="documentation-for-authorization"></a>
<a name="oauth2"></a>