C#

Here are some examples of code snippets in C#.


An example of fetching all payments:

using System;
using System.Net;

namespace Snapscan
{
  class Example
  {
    static void Main(string[] args)
    {
      const String apiKey = "your-api-key";
      const String url = "https://pos.snapscan.io/merchant/api/v1/payments";
      var client = new WebClient { Credentials = new NetworkCredential(apiKey, "") };
      var response = client.DownloadString(url);
      System.Console.WriteLine(response);
    }
  }
}