This section walks you through the steps for integrating Assembly’s service into your .NET-based site.
Assembly’s .Net library is distributed via the NuGet package manager. It has dependencies on log4net, Newtonsoft.Json, RestSharp and Unity.
Our Assembly NuGet package can be found for reference on NuGet.
The relevant source codes can be found for reference on GitHub.
Before you start
In order to interact with Assembly APIs, you need to generate an API key, which is associated with your Assembly account. Your API key is required to configure Assembly’s service into your site.
If you have not yet generated an API key, follow the instructions laid out in our guide on generating API keys.
Enter the following on your package manager console:
Create an Assemby client by adding the following configuration in XML to either your App.config or Web.config file, depending on whether you are distributing the program through a Windows or Web application.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="PromisePay"> <section name="Settings" type="PromisePayDotNet.Settings.SettingsHandler,PromisePayDotNet" /> </sectionGroup> </configSections> <PromisePay> <Settings> <add key="ApiUrl" value="yourenvironment" /> <add key="Login" value="youremailaddress" /> <add key="Password" value="yourAPIkey" /> </Settings> </PromisePay> </configuration>
Your site is now integrated with Assembly’s service.
If you would like to learn more about using and configuring Assembly’s .NET SDK, you can find documentation on:
- Assembly’s API reference for API calls
- Assembly’s Ruby repository on GitHub for configuration information and examples