资 源 简 介
A C# .NET wrapper around the SunnyTrail API.
SunnyTrail is a self-serve hosted service that allows web startup founders to know the state of their business in real time.
Getting Started
Download the latest binary for SunnyTrail.NET and add a reference to it in your project.
Using SunnyTrail.NET
```
// First create an event (in this example, the event is me signing up to the basic trial plan for $49.
var signupEvent = new Event
{
Id = 1,
Action = new EventAction { Type = EventActionType.Signup, Created = DateTime.UtcNow },
Email = "user@sample.com",
Name = "Matthew Brindley",
Plan = new EventPlan { Name = "Basic Trial 49", Price = 49.0, Recurring = 31 }
};
// Now submit the event to SunnyTrail