Skip to content

MyGet/SyntaxTree.FastSpring.Api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyntaxTree.FastSpring.Api

SyntaxTree.FastSpring.Api is a C# library to query the FastSpring REST API.

It works on .NET 3.5, .NET 4.0 and .NET 4.5.

API

namespace SyntaxTree.FastSpring.Api
{
	public sealed class CompanyStore
	{
		public CompanyStore(StoreCredential credential) {}
		
		public async Task<Order> GetOrderAsync(string reference) {}
	}

	public sealed class StoreCredential
	{
		public string Company { get; set; }
		public string Username { get; set; }
		public string Password { get; set; }
		
		public StoreCredential(string company, string username, string password) {}
	}
}

Usage sample:

var store = new CompanyStore(
	new StoreCredential(
		company: "Microsoft",
		username: "api-user",
		password: "xxx"));

var order = await store.GetOrderAsync(reference: "SYNXXXXXX-XXXX-XXXXX");

Console.WriteLine(order.Customer.FirstName);

All calls made to the FastSpring server are asynchronous.

About

A library to use the REST API that FastSpring exposes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 95.9%
  • Shell 4.1%