A native C# SDK for Trolley.
For more information about the API as well as C# code samples check out the full API documentation
For C#
In Solution Explorer, right-click the project node and click Add Reference. Select the dll in the file explorer and confirm your selection.
Open your package manager console and enter:
PM> Install-Package trolleyhq
The library is hosted on github here
- Trolley
- Trolley.Types
- Trolley.Exceptions
// A simple c# application using the Trolley SDK
using Trolley;
using Trolley.Types;
class Program
{
static void Main(string[] args)
{
// set your API keys
var gateway = new Trolley.Gateway("<ACCESS_KEY>","<SECRET_KEY>");
Recipient recipient = gateway.recipient.Get("R-a4q7zxMa26Zhx7ULApBGw");
Console.WriteLine(recipient.Id);
Console.Read();
}
}
Methods should all have C# Doc comments to help you understand their usage.
As mentioned the full API documentation is the best source of information about the API.