Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Rebilly/Rebilly-NET-SDK

Repository files navigation

Build Status ryans-packages MyGet Build Status GitHub license

Rebilly .NET SDK (Pre-Release)

The Rebilly NET SDK makes it easy for developers to access Rebilly REST APIs from their .NET code.

Installation

There are three ways to download and install the Rebilly NET SDK.

  1. From the Package Manager Console.
Install-Package Rebilly.dll -Pre
  1. Searching for 'Rebilly' using the Package Manager Dialog.

  2. Build from the source

  • Clone the Rebilly .NET SDK Repo:
git clone https://github.com/Rebilly/Rebilly-NET-SDK.git

or download it here:

https://github.com/Rebilly/Rebilly-NET-SDK/archive/master.zip
  • Locate Rebilly.sln and open in Visual Studio 2013+.
  • It should build without any dependencies.

Requirements

  • .NET Framework 4.5+

Quick Examples

Create a Rebilly Client

using Rebilly;

// Ceate a Rebilly client.
var RebillyClient = new Client(apiKey: "YOUR API Key", baseUrl: Client.SandboxHost);

Create a Customer

  var RebillyClient = new Client(apiKey: "YOUR API Key", baseUrl: Client.SandboxHost);
  
  var CreateCustomer = new Customer()
  {
      Email = "youremailaddress@yourdomain.com",
      FirstName = "Bill",
      LastName = "Smith",
      IpAddress = "123.123.133.133"
  };
  
  try
  {
      var NewCustomer = RebillyClient.Customers().Create(CreateCustomer);
  }
  catch(RebillyException ex)
  {
      Console.WriteLine("An error has occurred: " + ex.ToString());
  }

Creating a signature on the server, which can be used for client-side authentication

  using Rebilly;
  
  var NewSignature = new Signature();
  var SignatureText = NewSignature.Generate("[Your API User]", "[Your API Key]");

Documentation

Read https://www.rebilly.com/api/documentation/ for more details.

Releases

No releases published

Packages

No packages published

Languages