C# Client for the OriginStamp service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swagger-codegen
docs
src/OriginStamp.Client
.gitignore
.swagger-codegen-ignore
.travis.yml
LICENSE
OriginStamp.Client.sln
README.md
build.bat
build.sh
git_push.sh

README.md

OriginStamp C# Client - the C# library for the OriginStamp API

Build Status

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 3.0
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.languages.CSharpClientCodegen For more information, please visit https://originstamp.com

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;

Getting Started

The package is available via [NuGet] (https://docs.nuget.org/consume/installing-nuget) here.

using System;
using System.Diagnostics;
using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;

namespace Example
{
    public class CreateTimestampExample
    {
        public void main()
        {
            var apiInstance = new TimestampApi();
            var authorization = "authorization_example";  // string | A valid API key is essential for authorization to handle the request.
            var timestampRequest = new TimestampRequest(); // TimestampRequest | DTO for the hash submission. Add all relevant information concerning your hash submission.

            try
            {
                // Submission
                DefaultTimestampResponse result = apiInstance.CreateTimestamp(authorization, timestampRequest);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimestampApi.CreateTimestamp: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.originstamp.com

Class Method HTTP request Description
SchedulerApi GetNextSchedulingTime POST /v3/submission/times NextSchedule
TimestampApi CreateTimestamp POST /v3/timestamp/create Submission
TimestampApi GetApiKeyUsage GET /v3/api_key/usage Usage
TimestampApi GetHashStatus GET /v3/timestamp/{hash_string} Status
TimestampApi GetProof POST /v3/timestamp/proof Proof
TimestampApi TriggerTimestampWebhook POST /v3/webhook/start Dev

Documentation for Models