OriginStamp.Client
1.0.0
dotnet add package OriginStamp.Client --version 1.0.0
NuGet\Install-Package OriginStamp.Client -Version 1.0.0
<PackageReference Include="OriginStamp.Client" Version="1.0.0" />
paket add OriginStamp.Client --version 1.0.0
#r "nuget: OriginStamp.Client, 1.0.0"
// Install OriginStamp.Client as a Cake Addin #addin nuget:?package=OriginStamp.Client&version=1.0.0 // Install OriginStamp.Client as a Cake Tool #tool nuget:?package=OriginStamp.Client&version=1.0.0
OriginStamp C# Client - the C# library for the OriginStamp API
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
<a name="frameworks-supported"></a>
Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
<a name="dependencies"></a>
Dependencies
- RestSharp - 105.1.0 or later
- Json.NET - 11.0.2 or later
- JsonSubTypes - 1.5.1 or later
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
<a name="installation"></a>
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;
<a name="getting-started"></a>
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 );
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
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 |
<a name="documentation-for-models"></a>
Documentation for Models
- Model.DefaultSchedulerResponse
- Model.DefaultTimestampResponse
- Model.DefaultUsageResponse
- Model.Defaultstring
- Model.Notification
- Model.ProofRequest
- Model.ResponseEntity
- Model.SchedulerRequest
- Model.SchedulerResponse
- Model.TimestampData
- Model.TimestampRequest
- Model.TimestampResponse
- Model.UsageResponse
- Model.WebhookRequest
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- JsonSubTypes (>= 1.5.1)
- NewtonSoft.Json (>= 11.0.2)
- RestSharp (>= 105.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 760 | 11/6/2018 |